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