Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SetPassword Method

IIS 7.0

Sets the password for a specified user name.

Namespace:  Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public static void SetPassword(
	string userName,
	string password
)

Parameters

userName
Type: System..::..String
The user name.
password
Type: System..::..String
The new password.

ExceptionCondition
ArgumentNullException

userName or password is nullNothingnullptrunita null reference (Nothing in Visual Basic) or empty.

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.

Community Additions

ADD
Show:
© 2015 Microsoft