SecuredTaskDeniedException Class

The exception that is thrown when a user cannot perform a task.

Inheritance Hierarchy

Syntax

public sealed class SecuredTaskDeniedException : System.Security.SecurityException

Constructors

Name Description
SecuredTaskDeniedException(ProGetSecuredTask task, string userName)

Initializes a new instance of the SecuredTaskDeniedException class.

SecuredTaskDeniedException(ProGetSecuredTask task, string userName, int privilegeId)

Initializes a new instance of the SecuredTaskDeniedException class.

SecuredTaskDeniedException(OtterSecuredTask task, string userName)

Initializes a new instance of the SecuredTaskDeniedException class.

SecuredTaskDeniedException(OtterSecuredTask task, string userName, int privilegeId)

Initializes a new instance of the SecuredTaskDeniedException class.

SecuredTaskDeniedException(BuildMasterSecuredTask task, string userName)

Initializes a new instance of the SecuredTaskDeniedException class.

SecuredTaskDeniedException(BuildMasterSecuredTask task, string userName, int privilegeId)

Initializes a new instance of the SecuredTaskDeniedException class.

SecuredTaskDeniedException(int task, string userName)

Initializes a new instance of the SecuredTaskDeniedException class.

SecuredTaskDeniedException(int task, string userName, int privilegeId)

Initializes a new instance of the SecuredTaskDeniedException class.

Properties

Name Description
DeniedPrivilegeId

Gets the ID of the deny privilege if applicable.

Message

Gets a friendly description of the error.

SecuredTask

Gets the task which the user tried to perform.

SecuredTaskName

Gets the name of the task which the user tried to perform.

UserName

Gets the name of the user which tried to perform the task.

Methods

Name Description
GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)