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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈