你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DefaultAzureCredentialOptions.SharedTokenCacheUsername Property

Definition

Specifies the preferred authentication account to be retrieved from the shared token cache for single sign on authentication with development tools. In the case multiple accounts are found in the shared token.

public string SharedTokenCacheUsername { get; set; }
member this.SharedTokenCacheUsername : string with get, set
Public Property SharedTokenCacheUsername As String

Property Value

Remarks

If multiple accounts are found in the shared token cache and no value is specified, or the specified value matches no accounts in the cache, the SharedTokenCacheCredential won't be used for authentication. Defaults to the value of environment variable AZURE_USERNAME.

Applies to