CredentialsCacheManager.StoreCredentials 方法 (String, Uri, String, SecureString, CachedCredentialsType, Boolean, Dictionary<String, String>)
命名空間: Microsoft.TeamFoundation.Client
組件: Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)
語法
'宣告
Public Function StoreCredentials ( _
featureRegistryKeyword As String, _
uri As Uri, _
userName As String, _
password As SecureString, _
type As CachedCredentialsType, _
nonInteractive As Boolean, _
additionalAttributes As Dictionary(Of String, String) _
) As Integer
public int StoreCredentials(
string featureRegistryKeyword,
Uri uri,
string userName,
SecureString password,
CachedCredentialsType type,
bool nonInteractive,
Dictionary<string, string> additionalAttributes
)
參數
- featureRegistryKeyword
型別:System.String
- uri
型別:System.Uri
- userName
型別:System.String
- password
型別:System.Security.SecureString
- nonInteractive
型別:System.Boolean
- additionalAttributes
型別:System.Collections.Generic.Dictionary<String, String>
傳回值
型別:System.Int32
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。