Export (0) Print
Expand All

CreatePrincipal Method

IIS 7.0

Creates a Windows security principal that has the specified user name.

Namespace:  Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

protected internal virtual IPrincipal CreatePrincipal(
	string userName
)

Parameters

userName
Type: System..::..String
The user name.

Return Value

Type: System.Security.Principal..::..IPrincipal
A GenericPrincipal object.

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 nullNothingnullptrunita null reference (Nothing in Visual Basic).

The default authentication type of the GenericIdentity that is used to create the GenericPrincipal object is "Basic".

Community Additions

ADD
Show:
© 2015 Microsoft