BasicAuthCredential Constructor (BasicAuthToken)
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 BasicAuthToken _
)
public BasicAuthCredential(
BasicAuthToken initialToken
)
public:
BasicAuthCredential(
BasicAuthToken^ initialToken
)
new :
initialToken:BasicAuthToken -> BasicAuthCredential
public function BasicAuthCredential(
initialToken : BasicAuthToken
)
Parameters
initialToken
Type: Microsoft.TeamFoundation.Client.BasicAuthTokenAn 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.