ServiceKey.CreateServiceKey Method

Create a new ServiceKey object.

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

Syntax

'Declaration
Public Shared Function CreateServiceKey ( _
    ID As Long, _
    isPrimary As Boolean, _
    systemReserved As Boolean, _
    startDate As DateTime, _
    endDate As DateTime _
) As ServiceKey
public static ServiceKey CreateServiceKey(
    long ID,
    bool isPrimary,
    bool systemReserved,
    DateTime startDate,
    DateTime endDate
)
public:
static ServiceKey^ CreateServiceKey(
    long long ID, 
    bool isPrimary, 
    bool systemReserved, 
    DateTime startDate, 
    DateTime endDate
)
static member CreateServiceKey : 
        ID:int64 * 
        isPrimary:bool * 
        systemReserved:bool * 
        startDate:DateTime * 
        endDate:DateTime -> ServiceKey
public static function CreateServiceKey(
    ID : long, 
    isPrimary : boolean, 
    systemReserved : boolean, 
    startDate : DateTime, 
    endDate : DateTime
) : ServiceKey

Parameters

  • systemReserved
    Type: System.Boolean

    Initial value of SystemReserved.

Return Value

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

.NET Framework Security

See Also

Reference

ServiceKey Class

Microsoft.TeamFoundation.Framework.Server.AccessControl Namespace