共用方式為


DeviceCodeCredentialOptions.ClientId Property

Definition

The client ID of the application used to authenticate the user. If not specified the user will be authenticated with an Azure development application. It is recommended that developers register their applications and assign appropriate roles. For more information, visit https://aka.ms/azsdk/identity/AppRegistrationAndRoleAssignment. If not specified, users will authenticate to an Azure development application, which is not recommended for production scenarios.

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

Property Value

Applies to