Share via


ManagementAuthentication.CreateUser(String, String) Method

Definition

Creates an IIS Manager user.

public:
 static Microsoft::Web::Management::Server::ManagementUserInfo ^ CreateUser(System::String ^ userName, System::String ^ password);
public static Microsoft.Web.Management.Server.ManagementUserInfo CreateUser (string userName, string password);
static member CreateUser : string * string -> Microsoft.Web.Management.Server.ManagementUserInfo
Public Shared Function CreateUser (userName As String, password As String) As ManagementUserInfo

Parameters

userName
String

The user name.

password
String

The password.

Returns

A ManagementUserInfo object.

Exceptions

userName or password is null or empty.

Remarks

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

Applies to