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

AzureMonitorOptions.Credential 属性

定义

获取或设置 的值 TokenCredential。 如果未 TokenCredential 设置 ,则禁用 AAD 身份验证,并使用连接字符串中的检测密钥。

public Azure.Core.TokenCredential Credential { get; set; }
member this.Credential : Azure.Core.TokenCredential with get, set
Public Property Credential As TokenCredential

属性值

注解

https://video2.skills-academy.com/en-us/azure/azure-monitor/app/sdk-connection-string?tabs=net#is-the-connection-string-a-secret.

适用于