ManagementUserInfo(String, Boolean) Constructor
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.
Initializes a new instance of the ManagementUserInfo class.
public:
ManagementUserInfo(System::String ^ name, bool enabled);
public ManagementUserInfo (string name, bool enabled);
new Microsoft.Web.Management.Server.ManagementUserInfo : string * bool -> Microsoft.Web.Management.Server.ManagementUserInfo
Public Sub New (name As String, enabled As Boolean)
Parameters
- name
- String
The name of the IIS Manager user.
- enabled
- Boolean
true
if the IIS Manager user account is enabled; otherwise, false
.
Remarks
The Microsoft.Web.Management.Server.ManagementAuthentication.CreateUser method creates a ManagementUserInfo object when it is called. When the object is created, the IIS Manager user is added to the <authentication>
section of the Administration.config file. If you attempt to create a ManagementUserInfo that is already in the Administration.config file, an exception will be thrown.