CreateUser Method
IIS 7.0
Creates an IIS Manager user.
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
Parameters
- userName
- Type: System..::..String
The user name.
- password
- Type: System..::..String
The password.
Return Value
Type: Microsoft.Web.Management.Server..::..ManagementUserInfoA Microsoft.Web.Management.Server..::..ManagementUserInfo object.
| Exception | Condition |
|---|---|
| ArgumentNullException | userName or password is nullNothingnullptrunita null reference (Nothing in Visual Basic) or empty. |
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.