This documentation is archived and is not being maintained.

SecurityPermissionAttribute.Infrastructure Property

Gets or sets a value indicating whether code can plug into the common language runtime infrastructure, such as adding Remoting Context Sinks, Envoy Sinks and Dynamic Sinks.

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

public bool Infrastructure { get; set; }
/** @property */
public boolean get_Infrastructure ()

/** @property */
public void set_Infrastructure (boolean value)

public function get Infrastructure () : boolean

public function set Infrastructure (value : boolean)

Property Value

true if code can plug into the common language runtime infrastructure; otherwise, false.

The following code example shows the use of the Infrastructure property to deny the ability to plug into the common language runtime infrastructure. For the complete code example, see the SecurityPermissionAttribute class.

    // Set the Infrastructure property.
[SecurityPermissionAttribute(SecurityAction.Deny, Infrastructure = true)]

// Set the Infrastructure property.
/** @attribute SecurityPermissionAttribute(SecurityAction.Deny, 
    Infrastructure = true)

Windows 98, Windows 2000 SP4, Windows Millennium Edition, 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, 1.0