CredentialsCacheManager.StoreCredentials 方法 (String, String, String, SecureString, String, Dictionary<String, String>)
命名空间: Microsoft.TeamFoundation.Client
程序集: Microsoft.TeamFoundation.Client(在 Microsoft.TeamFoundation.Client.dll 中)
语法
声明
Public Function StoreCredentials ( _
featureRegistryKeyword As String, _
targetName As String, _
userName As String, _
password As SecureString, _
comment As String, _
attributes As Dictionary(Of String, String) _
) As Integer
public int StoreCredentials(
string featureRegistryKeyword,
string targetName,
string userName,
SecureString password,
string comment,
Dictionary<string, string> attributes
)
参数
- featureRegistryKeyword
类型:System.String
- targetName
类型:System.String
- userName
类型:System.String
- password
类型:System.Security.SecureString
- comment
类型:System.String
- attributes
类型:System.Collections.Generic.Dictionary<String, String>
返回值
类型:System.Int32
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。