SPHttpUserAgentAndMethodClassifier Constructor (String, String, SPHttpUserAgentAndMethodClassifier.MatchSettings, SPRequestThrottleLevel)
Initializes a new instance of the SPHttpUserAgentAndMethodClassifier class by using specified values for its properties.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
userAgent As String, _
httpMethod As String, _
matchFlag As SPHttpUserAgentAndMethodClassifier.MatchSettings, _
throttleLevel As SPRequestThrottleLevel _
)
'Usage
Dim userAgent As String
Dim httpMethod As String
Dim matchFlag As SPHttpUserAgentAndMethodClassifier.MatchSettings
Dim throttleLevel As SPRequestThrottleLevel
Dim instance As New SPHttpUserAgentAndMethodClassifier(userAgent, _
httpMethod, matchFlag, throttleLevel)
public SPHttpUserAgentAndMethodClassifier(
string userAgent,
string httpMethod,
SPHttpUserAgentAndMethodClassifier.MatchSettings matchFlag,
SPRequestThrottleLevel throttleLevel
)
Parameters
userAgent
Type: System.StringA user agent (or a null reference (Nothing in Visual Basic)).
httpMethod
Type: System.StringAn HTTP method (or a null reference (Nothing in Visual Basic)).
matchFlag
Type: Microsoft.SharePoint.Utilities.SPHttpUserAgentAndMethodClassifier.MatchSettingsA value indicating whether request matching uses the userAgent, the httpMethod, or both.
throttleLevel
Type: Microsoft.SharePoint.Utilities.SPRequestThrottleLevelThe throttle level to apply to matching requests.
Remarks
If userAgent or httpMethod is a null reference (Nothing in Visual Basic), the UserAgent or HttpMethod property, respectively, is set to an empty string.
See Also
Reference
SPHttpUserAgentAndMethodClassifier Class
SPHttpUserAgentAndMethodClassifier Members