C-DEngine 5.105

WebHeaderCollection..::..IsRestricted Method (String, Boolean)

Determines whether the specified header can be set for the request or the response.

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static bool IsRestricted(
	string headerName,
	bool response
)
Public Shared Function IsRestricted ( _
	headerName As String, _
	response As Boolean _
) As Boolean
public:
static bool^ IsRestricted(
	String^ headerName, 
	bool^ response
)

Parameters

headerName
Type: String
A String that represents the name of the header to test.
response
Type: Boolean
true if does the test for the response; for the request, false.

Return Value

true if the header is restricted; otherwise, false.

Exceptions


ExceptionCondition
ArgumentNullExceptionheaderName is nullNothingnullptra null reference (Nothing in Visual Basic) or empty.
ArgumentExceptionheaderName contains invalid characters.