AbstractApplicationBuilder<T>.WithTenantId(String) 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.
Sets the tenant ID of the organization from which the application will let
users sign-in. This is classically a GUID or a domain name. See https://aka.ms/msal-net-application-configuration.
Although it is also possible to set tenantId
to common
,
organizations
, and consumers
, it's recommended to use one of the
overrides of WithAuthority(AzureCloudInstance, AadAuthorityAudience, Boolean).
public T WithTenantId (string tenantId);
member this.WithTenantId : string -> 'T
Public Function WithTenantId (tenantId As String) As T
Parameters
- tenantId
- String
tenant ID of the Azure AD tenant or a domain associated with this Azure AD tenant, in order to sign-in a user of a specific organization only
Returns
The builder to chain the .With methods
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈