ResourcePermissionBase.PermissionAccessType Property

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 */
protected Type get_PermissionAccessType ()

/** @property */
protected void set_PermissionAccessType (Type value)

protected function get PermissionAccessType () : Type

protected function set PermissionAccessType (value : Type)

Property Value

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

Exception typeCondition


The property value is a null reference (Nothing in Visual Basic).


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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions