Share via


TfsClientCredentials.LoadCachedCredentials Method (Uri, Boolean, Boolean)

Loads stored credentials for the specified server if found. If no credentials are found in the windows credential store for the specified server and options then default credentials are returned.

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

Syntax

'Declaration
Public Shared Function LoadCachedCredentials ( _
    serverUrl As Uri, _
    requireExactMatch As Boolean, _
    allowInteractive As Boolean _
) As TfsClientCredentials
public static TfsClientCredentials LoadCachedCredentials(
    Uri serverUrl,
    bool requireExactMatch,
    bool allowInteractive
)
public:
static TfsClientCredentials^ LoadCachedCredentials(
    Uri^ serverUrl, 
    bool requireExactMatch, 
    bool allowInteractive
)
static member LoadCachedCredentials : 
        serverUrl:Uri * 
        requireExactMatch:bool * 
        allowInteractive:bool -> TfsClientCredentials
public static function LoadCachedCredentials(
    serverUrl : Uri, 
    requireExactMatch : boolean, 
    allowInteractive : boolean
) : TfsClientCredentials

Parameters

  • requireExactMatch
    Type: System.Boolean

    A value indicating whether an exact or partial match of the server is required

  • allowInteractive
    Type: System.Boolean

    A value indicating whether the credentials may support interactivity

Return Value

Type: Microsoft.TeamFoundation.Client.TfsClientCredentials
A credentials object populated with stored credentials for the server if found

.NET Framework Security

See Also

Reference

TfsClientCredentials Class

LoadCachedCredentials Overload

Microsoft.TeamFoundation.Client Namespace