This documentation is archived and is not being maintained.

ResourcePermissionBase.PermissionAccessType Property

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

[Visual Basic]
Protected Property PermissionAccessType As Type
protected Type PermissionAccessType {get; set;}
protected: __property Type* get_PermissionAccessType();
protected: __property void set_PermissionAccessType(Type*);
protected function get PermissionAccessType() : Type;
protected function set PermissionAccessType(Type);

Property Value

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


Exception Type Condition
ArgumentNullException The property value is a null reference (Nothing in Visual Basic).
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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ResourcePermissionBase Class | ResourcePermissionBase Members | System.Security.Permissions Namespace