TeamFoundationMetabase.SetRequestRestrictionsOnUserAgent 方法

特定用户代理设置的请求限制正则表达式。

命名空间:  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
    使用的正则表达式匹配请求的用户代理字符串

.NET Framework 安全性

请参阅

参考

TeamFoundationMetabase 类

Microsoft.TeamFoundation.Framework.Server 命名空间