Share via


MultipleUsersInSystemUserRoleException Class

Definition

Represents the exception that is thrown because the Administrator user role cannot have multiple users assigned to it. It must have one user assigned to it.

public ref class MultipleUsersInSystemUserRoleException : Microsoft::EnterpriseManagement::Common::EnterpriseManagementException
[System.Runtime.Serialization.KnownType(typeof(System.Int32))]
[System.Runtime.Serialization.KnownType(typeof(System.Guid))]
[System.Runtime.Serialization.KnownType(typeof(System.String))]
[System.Serializable]
public class MultipleUsersInSystemUserRoleException : Microsoft.EnterpriseManagement.Common.EnterpriseManagementException
type MultipleUsersInSystemUserRoleException = class
    inherit EnterpriseManagementException
Public Class MultipleUsersInSystemUserRoleException
Inherits EnterpriseManagementException
Inheritance
MultipleUsersInSystemUserRoleException
Attributes

Constructors

MultipleUsersInSystemUserRoleException()

Initializes a new MultipleUsersInSystemUserRoleException object.

MultipleUsersInSystemUserRoleException(Exception)

Initializes a new MultipleUsersInSystemUserRoleException object by specifying an inner exception that caused the current exception.

MultipleUsersInSystemUserRoleException(Guid)

Initializes a new MultipleUsersInSystemUserRoleException object by specifying a user role identifier.

MultipleUsersInSystemUserRoleException(SerializationInfo, StreamingContext)

Initializes a new MultipleUsersInSystemUserRoleException object with serialized data.

MultipleUsersInSystemUserRoleException(String)

Initializes a new MultipleUsersInSystemUserRoleException object by specifying the error message that describes the current exception.

MultipleUsersInSystemUserRoleException(String, Exception)

Initializes a new MultipleUsersInSystemUserRoleException object with an error message and inner exception.

Properties

UserRoleId

Gets a globally unique identifier (GUID) for the user role that caused the exception to be thrown.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo object with information about the exception.

Applies to