Share via


TeamFoundationMetabase.SetRequestRestrictions 方法 (String, RequestRestrictions, Boolean)

指定相對路徑集合要求限制。

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
Public Sub SetRequestRestrictions ( _
    applicationRelativePath As String, _
    restrictions As RequestRestrictions, _
    exactPathMatchOnly As Boolean _
)
public void SetRequestRestrictions(
    string applicationRelativePath,
    RequestRestrictions restrictions,
    bool exactPathMatchOnly
)

參數

  • exactPathMatchOnly
    類型:System.Boolean
    true 表示只適用於這正確的路徑。遞迴套用為 false。

備註

路徑與簡單和實際 (OrdinalIgnoreCase)。 如果您是 exactPathMatchOnly = true,希望您授與其他輸入 (即匿名存取),而不是將方法保護特定的資源。 如果您將方法保護特定的資源,而不需要限制您要的人可能可以建構的 URL。

.NET Framework 安全性

請參閱

參考

TeamFoundationMetabase 類別

SetRequestRestrictions 多載

Microsoft.TeamFoundation.Framework.Server 命名空間