ManagementAuthentication.SetPassword(String, String) Method
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.
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.