Delen via


BasicAuthCredential Constructor (ICredentials)

Initializes a new BasicAuthCredential instance with the specified token.

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

Syntax

'Declaration
Public Sub New ( _
    initialToken As ICredentials _
)
public BasicAuthCredential(
    ICredentials initialToken
)
public:
BasicAuthCredential(
    ICredentials^ initialToken
)
new : 
        initialToken:ICredentials -> BasicAuthCredential
public function BasicAuthCredential(
    initialToken : ICredentials
)

Parameters

  • initialToken
    Type: System.Net.ICredentials

    An optional token which, if present, should be used before obtaining a new token

.NET Framework Security

See Also

Reference

BasicAuthCredential Class

BasicAuthCredential Overload

Microsoft.TeamFoundation.Client Namespace