WindowsCredential Constructor (ICredentials, ICredentialsProvider)
Initializes a new WindowsCredential instance using the specified network credentials and fallback credentials provider.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Sub New ( _
credentials As ICredentials, _
credentialsProvider As ICredentialsProvider _
)
public WindowsCredential(
ICredentials credentials,
ICredentialsProvider credentialsProvider
)
public:
WindowsCredential(
ICredentials^ credentials,
ICredentialsProvider^ credentialsProvider
)
new :
credentials:ICredentials *
credentialsProvider:ICredentialsProvider -> WindowsCredential
public function WindowsCredential(
credentials : ICredentials,
credentialsProvider : ICredentialsProvider
)
Parameters
credentials
Type: System.Net.ICredentialsThe windows credentials which should be used for authentication
credentialsProvider
Type: Microsoft.TeamFoundation.Client.ICredentialsProviderThe windows credentials provider which should be used for authentication if the default credentials fail
.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.