Export (0) Print
Expand All

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
[C#]
protected Type PermissionAccessType {get; set;}
[C++]
protected: __property Type* get_PermissionAccessType();
protected: __property void set_PermissionAccessType(Type*);
[JScript]
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.

Exceptions

Exception Type Condition
ArgumentNullException The property value is a null reference (Nothing in Visual Basic).
ArgumentException The property value is not an enumeration value.

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft