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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。