共用方式為


CredentialsCacheManager.StoreCredentials 方法 (String, String, SecureString, String, Dictionary<String, String>)

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

語法

'宣告
Public Function StoreCredentials ( _
    targetName As String, _
    userName As String, _
    password As SecureString, _
    comment As String, _
    attributes As Dictionary(Of String, String) _
) As Integer
public int StoreCredentials(
    string targetName,
    string userName,
    SecureString password,
    string comment,
    Dictionary<string, string> attributes
)

參數

傳回值

型別:System.Int32

.NET Framework 安全性

請參閱

參考

CredentialsCacheManager 類別

StoreCredentials 多載

Microsoft.TeamFoundation.Client 命名空間