Bagikan melalui


IAccessControlService.ProvisionServiceIdentity Method (String, String, array<IdentityDescriptor )

Provisions a service identity with the given name and password.

Adds the service identity to the given groups.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Function ProvisionServiceIdentity ( _
    serviceIdentityName As String, _
    password As String, _
    addToGroups As IdentityDescriptor() _
) As ServiceIdentity
ServiceIdentity ProvisionServiceIdentity(
    string serviceIdentityName,
    string password,
    IdentityDescriptor[] addToGroups
)
ServiceIdentity^ ProvisionServiceIdentity(
    String^ serviceIdentityName, 
    String^ password, 
    array<IdentityDescriptor^>^ addToGroups
)
abstract ProvisionServiceIdentity : 
        serviceIdentityName:string * 
        password:string * 
        addToGroups:IdentityDescriptor[] -> ServiceIdentity
function ProvisionServiceIdentity(
    serviceIdentityName : String, 
    password : String, 
    addToGroups : IdentityDescriptor[]
) : ServiceIdentity

Parameters

  • serviceIdentityName
    Type: System.String

    The service identity name.

Return Value

Type: Microsoft.TeamFoundation.Framework.Client.ServiceIdentity
The provisioned service identity.

.NET Framework Security

See Also

Reference

IAccessControlService Interface

ProvisionServiceIdentity Overload

Microsoft.TeamFoundation.Framework.Client Namespace