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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin