Share via


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.String

    A user agent (or a null reference (Nothing in Visual Basic)).

  • httpMethod
    Type: System.String

    An HTTP method (or a null reference (Nothing in Visual Basic)).

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

SPHttpUserAgentAndMethodClassifier Overload

Microsoft.SharePoint.Utilities Namespace