Share via


TfsClientCredentials.LoadCachedCredentials Method (String, Uri, Boolean, Boolean, String, 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 ( _
    featureRegistryKeyword As String, _
    serverUrl As Uri, _
    requireExactMatch As Boolean, _
    allowInteractive As Boolean, _
    registryRootPath As String, _
    useWOW6432Hive As Boolean _
) As TfsClientCredentials
public static TfsClientCredentials LoadCachedCredentials(
    string featureRegistryKeyword,
    Uri serverUrl,
    bool requireExactMatch,
    bool allowInteractive,
    string registryRootPath,
    bool useWOW6432Hive
)
public:
static TfsClientCredentials^ LoadCachedCredentials(
    String^ featureRegistryKeyword, 
    Uri^ serverUrl, 
    bool requireExactMatch, 
    bool allowInteractive, 
    String^ registryRootPath, 
    bool useWOW6432Hive
)
static member LoadCachedCredentials : 
        featureRegistryKeyword:string * 
        serverUrl:Uri * 
        requireExactMatch:bool * 
        allowInteractive:bool * 
        registryRootPath:string * 
        useWOW6432Hive:bool -> TfsClientCredentials
public static function LoadCachedCredentials(
    featureRegistryKeyword : String, 
    serverUrl : Uri, 
    requireExactMatch : boolean, 
    allowInteractive : boolean, 
    registryRootPath : String, 
    useWOW6432Hive : 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

  • registryRootPath
    Type: System.String

    A registry root path under which the credentials should be found (pass null for the default TFS registry root)

  • useWOW6432Hive
    Type: System.Boolean

    Pass true if the registryRootPath is under the WOW6432 hive on 64-bit environments

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