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

AzureMonitorOptions.Credential Property

Definition

Get or sets the value of TokenCredential. If TokenCredential is not set, AAD authentication is disabled and Instrumentation Key from the Connection String will be used.

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

Property Value

Remarks

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

Applies to