SPHttpUserAgentAndMethodClassifier constructor (String, String, SPHttpUserAgentAndMethodClassifier.MatchSettings, SPRequestThrottleLevel)
藉由使用其屬性的指定的值初始化SPHttpUserAgentAndMethodClassifier類別的新執行個體。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub New ( _
userAgent As String, _
httpMethod As String, _
matchFlag As SPHttpUserAgentAndMethodClassifier.MatchSettings, _
throttleLevel As SPRequestThrottleLevel _
)
'用途
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
)
參數
userAgent
Type: System.String使用者代理程式 」 中 (或a null reference (Nothing in Visual Basic))。
httpMethod
Type: System.StringHTTP 方法 (或a null reference (Nothing in Visual Basic))。
matchFlag
Type: Microsoft.SharePoint.Utilities.SPHttpUserAgentAndMethodClassifier.MatchSettings值,指出是否相符的要求使用userAgent、 httpMethod中,或兩者。
throttleLevel
Type: Microsoft.SharePoint.Utilities.SPRequestThrottleLevel要套用至符合要求的節流閥等級。
備註
如果userAgent或httpMethod , a null reference (Nothing in Visual Basic)UserAgent或HttpMethod屬性,分別是設定為空字串。
請參閱
參照
SPHttpUserAgentAndMethodClassifier class
SPHttpUserAgentAndMethodClassifier members