ResourcePermissionBase.PermissionAccessType Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets an enumeration value that describes the types of access that you are giving the resource.

Namespace:   System.Security.Permissions
Assembly:  System (in System.dll)

protected Type PermissionAccessType { get; set; }

Property Value

Type: System.Type

An enumeration value that is derived from Type and describes the types of access that you are giving the resource.

Exception Condition
ArgumentNullException

The property value is null.

ArgumentException

The property value is not an enumeration value.

Notes to Inheritors:

When you inherit from ResourcePermissionBase, you must set this property. For an example of an implementation of this class, see PerformanceCounterPermission. In PerformanceCounterPermission, the PermissionAccessType property is privately set to the type of PerformanceCounterPermissionAccess.

.NET Framework
Available since 1.1
Return to top
Show: