Share via


TeamFoundationMetabase.SetRequestRestrictionsOnUserAgent Method

Set request restrictions for a given user agent regular expression.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Sub SetRequestRestrictionsOnUserAgent ( _
    userAgentPattern As String, _
    userAgentStartsWithFilter As String, _
    restrictions As RequestRestrictions _
)
public void SetRequestRestrictionsOnUserAgent(
    string userAgentPattern,
    string userAgentStartsWithFilter,
    RequestRestrictions restrictions
)
public:
void SetRequestRestrictionsOnUserAgent(
    String^ userAgentPattern, 
    String^ userAgentStartsWithFilter, 
    RequestRestrictions^ restrictions
)
member SetRequestRestrictionsOnUserAgent : 
        userAgentPattern:string * 
        userAgentStartsWithFilter:string * 
        restrictions:RequestRestrictions -> unit
public function SetRequestRestrictionsOnUserAgent(
    userAgentPattern : String, 
    userAgentStartsWithFilter : String, 
    restrictions : RequestRestrictions
)

Parameters

  • userAgentPattern
    Type: System.String

    Regular expression to use to match a request's user agent string

.NET Framework Security

See Also

Reference

TeamFoundationMetabase Class

Microsoft.TeamFoundation.Framework.Server Namespace