Share via


ManagementAuthentication.DisableUser(String) Method

Definition

Disables an IIS Manager user.

public:
 static void DisableUser(System::String ^ userName);
public static void DisableUser (string userName);
static member DisableUser : string -> unit
Public Shared Sub DisableUser (userName As String)

Parameters

userName
String

The user name to disable.

Exceptions

userName is null or empty.

Remarks

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

Applies to