Share via


IVsCredential.SetTokenValue Method

Sets the token value (secret) for this credential. If the underlying credential has already been deleted it gets re-added with the new token value. The token cannot be null or empty, or whitespace.

Namespace:  Microsoft.VisualStudio.Shell.Connected.CredentialStorage
Assembly:  Microsoft.VisualStudio.Shell.Immutable.12.0 (in Microsoft.VisualStudio.Shell.Immutable.12.0.dll)

Syntax

'Declaration
Sub SetTokenValue ( _
    tokenValue As String _
)
void SetTokenValue(
    string tokenValue
)
void SetTokenValue(
    String^ tokenValue
)
abstract SetTokenValue : 
        tokenValue:string -> unit
function SetTokenValue(
    tokenValue : String
)

Parameters

  • tokenValue
    Type: String

    The token value.

.NET Framework Security

See Also

Reference

IVsCredential Interface

Microsoft.VisualStudio.Shell.Connected.CredentialStorage Namespace