TelemetryConfiguration.SetAzureTokenCredential(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set a TokenCredential for this configuration.
public void SetAzureTokenCredential (object tokenCredential);
member this.SetAzureTokenCredential : obj -> unit
Public Sub SetAzureTokenCredential (tokenCredential As Object)
Parameters
- tokenCredential
- Object
An instance of Azure.Core.TokenCredential.
Exceptions
An ArgumentException is thrown if the provided object does not inherit Azure.Core.TokenCredential.
Remarks
For more information on expected types, review the documentation for the Azure.Identity library. (https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity).
Applies to
Azure SDK for .NET