Share via


Rule.CreateRule Method

Create a new Rule object.

Namespace:  Microsoft.TeamFoundation.Framework.Server.AccessControl
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
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
)
public:
static Rule^ CreateRule(
    long long ID, 
    long long ruleGroupId, 
    long long issuerId, 
    bool systemReserved
)
static member CreateRule : 
        ID:int64 * 
        ruleGroupId:int64 * 
        issuerId:int64 * 
        systemReserved:bool -> Rule
public static function CreateRule(
    ID : long, 
    ruleGroupId : long, 
    issuerId : long, 
    systemReserved : boolean
) : Rule

Parameters

  • ruleGroupId
    Type: System.Int64

    Initial value of RuleGroupId.

  • systemReserved
    Type: System.Boolean

    Initial value of SystemReserved.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.AccessControl.Rule
Returns Rule.

.NET Framework Security

See Also

Reference

Rule Class

Microsoft.TeamFoundation.Framework.Server.AccessControl Namespace