System.Net.NetworkInformation.NetworkInformationPermissionAttribute Class

Allows security actions for System.Net.NetworkInformation.NetworkInformationPermission to be applied to code using declarative security.

See Also: NetworkInformationPermissionAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.All, AllowMultiple=true, Inherited=false)]
public sealed class NetworkInformationPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute

Remarks

This permission is used by classes that provide information about network connections and traffic statistics such as those in the System.Net.NetworkInformation namespace.

The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. For imperative security, use the System.Net.NetworkInformation.NetworkInformationPermission class.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0