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
ID
Type: System.Int64Initial value of Id.
isPrimary
Type: System.BooleanInitial value of IsPrimary.
systemReserved
Type: System.BooleanInitial value of SystemReserved.
startDate
Type: System.DateTimeInitial value of StartDate.
endDate
Type: System.DateTimeInitial value of EndDate.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.AccessControl.ServiceKey
Returns ServiceKey.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.TeamFoundation.Framework.Server.AccessControl Namespace