ManagementAuthentication.SetPassword(String, String) Method

Definition

Sets the password for a specified user name.

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

Parameters

userName
String

The user name.

password
String

The new password.

Exceptions

userName or password is null or empty.

Remarks

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

Applies to