TfsClientCredentials Implicit Conversion (WindowsCredential to TfsClientCredentials)
Implicitly converts a WindowsCredential instance into a TfsClientCredentials instance.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Shared Widening Operator CType ( _
credential As WindowsCredential _
) As TfsClientCredentials
public static implicit operator TfsClientCredentials (
WindowsCredential credential
)
static implicit operator TfsClientCredentials^ (
WindowsCredential^ credential
)
F# does not support the declaration of new casting operators.
JScript does not support the declaration of new casting operators.
Parameters
credential
Type: Microsoft.TeamFoundation.Client.WindowsCredentialThe windows credential instance
Return Value
Type: Microsoft.TeamFoundation.Client.TfsClientCredentials
A new TfsClientCredentials instance which wraps the specified credential
.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.