SPHttpHeaderThrottleClassifier.Match Method
Determines if the request includes a matching header.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Overrides Function Match ( _
request As HttpRequest _
) As Boolean
'Usage
Dim instance As SPHttpHeaderThrottleClassifier
Dim request As HttpRequest
Dim returnValue As Boolean
returnValue = instance.Match(request)
public override bool Match(
HttpRequest request
)
Parameters
request
Type: System.Web.HttpRequestThe HTTP request to evaluate.
Return Value
Type: System.Boolean
true, if (1) the request has the header and (2) the header value (if there is one) is the same as the value of the this.Value property; otherwise false.
Remarks
If the Value property is a null reference (Nothing in Visual Basic) or empty, this method returns true if a header with a name matching the Header property exists in the request.
See Also
Reference
SPHttpHeaderThrottleClassifier Class