PassportPrincipal(PassportIdentity, String[]) Constructor
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.
Initializes a new instance of the PassportPrincipal class from a PassportIdentity instance and an array of role names to which the user represented by that PassportIdentity belongs. This class is deprecated.
public:
PassportPrincipal(System::Web::Security::PassportIdentity ^ identity, cli::array <System::String ^> ^ roles);
public PassportPrincipal (System.Web.Security.PassportIdentity identity, string[] roles);
new System.Web.Security.PassportPrincipal : System.Web.Security.PassportIdentity * string[] -> System.Web.Security.PassportPrincipal
Public Sub New (identity As PassportIdentity, roles As String())
Parameters
- identity
- PassportIdentity
An implementation of the IIdentity interface that represents the user.
- roles
- String[]
An array of role names to which the user represented by the identity
parameter belongs.
Exceptions
identity
is null
.
Remarks
This class has been deprecated and is no longer supported. Microsoft Passport Network was replaced by Windows Live ID.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om