共用方式為


TfsClientCredentials.LoadCachedCredentials 方法 (String, Uri, Boolean, Boolean, String, Boolean)

載入儲存指定之伺服器的認證,如果找到的話)。 如果認證沒有指定的伺服器和選取 [預設認證的 Windows 認證存放區中找不到傳回。

命名空間:  Microsoft.TeamFoundation.Client
組件:  Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)

語法

'宣告
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
)

參數

  • requireExactMatch
    型別:System.Boolean
    指出伺服器需要完全或部分相符
  • allowInteractive
    型別:System.Boolean
    指出憑證是否可能支援互動。
  • registryRootPath
    型別:System.String
    下認證應搜尋的登錄根目錄路徑 (在預設 TFS 登錄根目錄的傳遞 null)
  • useWOW6432Hive
    型別:System.Boolean
    如果 registryRootPath,在 64 位元環境中, WOW6432 登錄區下請傳遞 True

傳回值

型別:Microsoft.TeamFoundation.Client.TfsClientCredentials
驗證針對填入與伺服器一起儲存的認證,如果找到的話)

.NET Framework 安全性

請參閱

參考

TfsClientCredentials 類別

LoadCachedCredentials 多載

Microsoft.TeamFoundation.Client 命名空間