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.ICredentialsAn optional token which, if present, should be used before obtaining a new token
.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.