Share via


ManagementAuthentication.AuthenticateUser(String, String) Method

Definition

Returns a value that indicates whether a user has been authenticated to IIS Manager.

public:
 static bool AuthenticateUser(System::String ^ userName, System::String ^ password);
public static bool AuthenticateUser (string userName, string password);
static member AuthenticateUser : string * string -> bool
Public Shared Function AuthenticateUser (userName As String, password As String) As Boolean

Parameters

userName
String

The user name.

password
String

The password.

Returns

true if the user's credentials are valid; otherwise, false.

Exceptions

userName or password is null or empty.

Remarks

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

Applies to