Share via


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

加载存储了指定的服务器的凭据,如果找到。如果凭据没有为指定的服务器和选项并默认凭据找到返回。

此重载,假设凭据将存储在TFS服务器的注册表根下

命名空间:  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 _
) As TfsClientCredentials
public static TfsClientCredentials LoadCachedCredentials(
    string featureRegistryKeyword,
    Uri serverUrl,
    bool requireExactMatch,
    bool allowInteractive
)

参数

  • requireExactMatch
    类型:System.Boolean
    一个值需要服务器的确切或部分匹配项
  • allowInteractive
    类型:System.Boolean
    指示凭据是否的值可以支持交互性

返回值

类型:Microsoft.TeamFoundation.Client.TfsClientCredentials
凭据对象填充服务器的存储凭据,如果找到

.NET Framework 安全性

请参见

参考

TfsClientCredentials 类

LoadCachedCredentials 重载

Microsoft.TeamFoundation.Client 命名空间