特定用户代理设置的请求限制正则表达式。
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
Public Sub SetRequestRestrictionsOnUserAgent ( _
userAgentPattern As String, _
userAgentStartsWithFilter As String, _
restrictions As RequestRestrictions _
)
public void SetRequestRestrictionsOnUserAgent(
string userAgentPattern,
string userAgentStartsWithFilter,
RequestRestrictions restrictions
)
参数
- userAgentPattern
类型:System.String
使用的正则表达式匹配请求的用户代理字符串
- userAgentStartsWithFilter
类型:System.String
- restrictions
类型:Microsoft.TeamFoundation.Framework.Server.RequestRestrictions
请求限制
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。