Share via


ManagementAuthorizationInfo Class

Definition

Encapsulates information about an authorized user.

public ref class ManagementAuthorizationInfo
public class ManagementAuthorizationInfo
type ManagementAuthorizationInfo = class
Public Class ManagementAuthorizationInfo
Inheritance
ManagementAuthorizationInfo

Examples

The following example obtains a collection of ManagementAuthorizationInfo objects and displays the property values for each element of the collection. This code example is part of a larger example provided for the ManagementAuthorization class.

foreach (ManagementAuthorizationInfo authorizedInfo in authorizedCollection)
{
    message = message + "\nName: " + authorizedInfo.Name;
    message = message + "     ConfigurationPath: " + 
        authorizedInfo.ConfigurationPath;
    message = message + "     IsRole: " + authorizedInfo.IsRole;

    // Check to see if the user is already in the allowed users collection.                
    if (userName.Equals(authorizedInfo.Name))
    {
        isInCollection = true;
    }
}

Remarks

This class contains information about each authorized user and is returned by the GetAuthorizedUsers method. This information is written to and read from the Administration.config file. There is one ManagementAuthorizationInfo object for each authorized user in each scope path of the Administration.config file.

Constructors

ManagementAuthorizationInfo(String, String, Boolean)

Initializes a new instance of the ManagementAuthorizationInfo class.

Properties

ConfigurationPath

Gets the configuration path for which authorization is granted.

IsRole

Gets a value indicating whether the value specified in the Name property is a security role.

Name

Gets the user name or role of the authorized user.

Applies to

See also