Share via


ManagementAuthentication.GetUser(String) Method

Definition

Returns information about an IIS Manager user.

public:
 static Microsoft::Web::Management::Server::ManagementUserInfo ^ GetUser(System::String ^ userName);
public static Microsoft.Web.Management.Server.ManagementUserInfo GetUser (string userName);
static member GetUser : string -> Microsoft.Web.Management.Server.ManagementUserInfo
Public Shared Function GetUser (userName As String) As ManagementUserInfo

Parameters

userName
String

The user name.

Returns

A ManagementUserInfo object that contains information about an IIS Manager user.

Exceptions

userName is null or empty.

Remarks

The ManagementUserInfo object contains a user name and a value that indicates whether the user name is enabled.

Applies to