SecurityException.GrantedSet Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public string GrantedSet {
	[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.NoFlags | SecurityPermissionFlag.ControlEvidence | SecurityPermissionFlag.ControlPolicy)]
	get;
	set;
}

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.

SecurityPermission

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
Show: