Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 
- userAgentStartsWithFilter
 Type: System.String
- restrictions 
 Type: Microsoft.TeamFoundation.Framework.Server.RequestRestrictions- request restrictions 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.