GrantedSet Property

SecurityException::GrantedSet Property


Gets or sets the granted permission set of the assembly that caused the SecurityException.

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

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

Property Value

Type: System::String^

The XML representation of the granted set of the assembly.

This property might not contain relevant data in security exceptions other than exceptions involving checks for the AllowPartiallyTrustedCallersAttribute.


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

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft