ManagementAuthentication.CreateUser Method (String, String)

IIS 7.0
 

Creates an IIS Manager user.

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

public static ManagementUserInfo CreateUser(
	string userName,
	string password
)

Parameters

userName
Type: System.String

The user name.

password
Type: System.String

The password.

Exception Condition
ArgumentNullException

userName or password is null or empty.

This method passes the specified parameters to the M:Microsoft.Web.Management.Server.ManagementAuthenticationProvider.CreateUser method of the Microsoft.Web.Management.Server.ManagementAuthenticationProvider object that is specified in the Provider property.

Return to top
Show: