ManagementAuthenticationProvider.CreatePrincipal(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.
Creates a Windows security principal that has the specified user name.
protected public:
virtual System::Security::Principal::IPrincipal ^ CreatePrincipal(System::String ^ userName);
protected internal virtual System.Security.Principal.IPrincipal CreatePrincipal (string userName);
abstract member CreatePrincipal : string -> System.Security.Principal.IPrincipal
override this.CreatePrincipal : string -> System.Security.Principal.IPrincipal
Protected Friend Overridable Function CreatePrincipal (userName As String) As IPrincipal
Parameters
- userName
- String
The user name.
Returns
A GenericPrincipal object.
Remarks
You can override this method in derived classes to create your own principal (for example, to create your own GenericPrincipal supporting roles).
By default, the roles array of the GenericPrincipal object that is returned is initialized to null
.
The default authentication type of the System.Security.Principal.GenericIdentity that is used to create the GenericPrincipal object is "Basic".