Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SecurityException.RefusedSet Property

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

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

public string RefusedSet { get; set; }
/** @property */
public String get_RefusedSet ()

/** @property */
public void set_RefusedSet (String value)

public function get RefusedSet () : String

public function set RefusedSet (value : String)

Property Value

The XML representation of the refused permission set of the assembly.

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

The following code example shows the use of the RefusedSet property to display the refused permission set of the assembly that caused the security check to fail. This code example is part of a larger example provided for the SecurityException class.

Display("The refused permission set is: " + 
    (sE.RefusedSet).ToString());

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.