Share via


ManagementUserInfo(String, Boolean) Constructor

Definition

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.

Applies to