共用方式為


IUser Interface

Definition

Caution

Use IAccount instead (See https://aka.ms/msal-net-2-released)

In MSAL.NET 1.x, was representing a User. From MSAL 2.x use IAccount which represents an account (a user has several accounts). See https://aka.ms/msal-net-2-released for more details.

[System.Obsolete("Use IAccount instead (See https://aka.ms/msal-net-2-released)", true)]
public interface IUser
[<System.Obsolete("Use IAccount instead (See https://aka.ms/msal-net-2-released)", true)>]
type IUser = interface
Public Interface IUser
Attributes

Properties

DisplayableId
Obsolete.

In MSAL.NET 1.x was the displayable ID of a user. From MSAL 2.x use the Username of an account. See https://aka.ms/msal-net-2-released for more details

Identifier
Obsolete.

In MSAL.NET 1.x was an identifier for the user in the guest tenant. From MSAL.NET 2.x, use HomeAccountIdIdentifier to get the user identifier (globally unique across tenants). See https://aka.ms/msal-net-2-released for more details.

IdentityProvider
Obsolete.

In MSAL.NET 1.x was the URL of the identity provider (e.g. https://login.microsoftonline.com/tenantId). From MSAL.NET 2.x use Environment which retrieves the host only (e.g. login.microsoftonline.com). See https://aka.ms/msal-net-2-released for more details.

Name
Obsolete.

In MSAL.NET 1.x was the name of the user (which was not very useful as the concatenation of some claims). From MSAL 2.x rather use Username. See https://aka.ms/msal-net-2-released for more details.

Applies to