AbstractApplicationBuilder<T>.WithTenantId(String) メソッド

定義

アプリケーションがユーザーのサインインを許可する組織のテナント ID を設定します。 これは、従来は GUID またはドメイン名です。 https://aka.ms/msal-net-application-configurationを参照してください。 tenantIdcommonorganizationsconsumersに設定することもできますが、WithAuthority(AzureCloudInstance, AadAuthorityAudience, Boolean)のいずれかのオーバーライドを使用することをお勧めします。

public T WithTenantId(string tenantId);
member this.WithTenantId : string -> 'T
Public Function WithTenantId (tenantId As String) As T

パラメーター

tenantId
String

特定の組織のユーザーのみをサインインさせるために、Azure AD テナントまたはこのAzure AD テナントに関連付けられているドメインのテナント ID

返品

T

を連結するビルダー。メソッドを使用する

適用対象