ManagementAuthentication.CreateUser(String, 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 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.