共用方式為


Rule.CreateRule 方法

建立新的規則相關聯的物件。

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

語法

'宣告
Public Shared Function CreateRule ( _
    ID As Long, _
    ruleGroupId As Long, _
    issuerId As Long, _
    systemReserved As Boolean _
) As Rule
public static Rule CreateRule(
    long ID,
    long ruleGroupId,
    long issuerId,
    bool systemReserved
)

參數

  • ruleGroupId
    型別:System.Int64
    RuleGroupId 的初始值。
  • systemReserved
    型別:System.Boolean
    SystemReserved 的初始值。

傳回值

型別:Microsoft.TeamFoundation.Framework.Server.AccessControl.Rule
傳回 Rule

.NET Framework 安全性

請參閱

參考

Rule 類別

Microsoft.TeamFoundation.Framework.Server.AccessControl 命名空間