Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SecurityException::PermissionState Property

 

Gets or sets the state of the permission that threw the exception.

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

public:
property String^ PermissionState {
	[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::NoFlags | SecurityPermissionFlag::ControlEvidence | SecurityPermissionFlag::ControlPolicy)]
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The state of the permission at the time the exception was thrown.

SecurityPermission

for the ability to provide evidence and view and modify policy. Associated enumerations: SecurityPermissionFlag::ControlEvidence, SecurityPermissionFlag::ControlPolicy

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft