Networking System [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ] 1.0.x.x 1.0.5000.0 2.0.0.0 All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe. System.Security.Permissions.CodeAccessSecurityAttribute System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Constructor | System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)

Used to declaratively specify security actions to control socket connections.

The properties of a are required to have non-null values. Once set, the values of the properties cannot be changed.

The details of a socket connection are specified using the properties of the current instance. For example, to secure a socket connection to port 80, set the property equal to "80".

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 for declarative security only. For imperative security, use the corresponding permission class, .

The allowable targets are determined by the passed to the constructor.

- Constructor
  A value.

  Constructs and initializes a new instance of the class with the specified value.

  To be added.
  is not a valid value.
  0
  1.0.5000.0
  2.0.0.0
- Property
  System.String

  Gets or sets the network access method specified by the current instance.

  A containing a network access method allowed by the current instance. Valid values are "Accept" and "Connect".

  This property is write-once. Once this property has been set to a non-null value, attempts to set this property to new value cause a .

  Valid values for this property correspond to enumeration values. is being set and is not . 0 1.0.5000.0 2.0.0.0
- Method
  System.Security.IPermission

  Returns a that contains the security information of the current instance.

  A object with the security information of the current instance.

  This method overrides .

  Applications typically do not call this method; it is intended for use by the system.

  The security information described by a security attribute is stored in the metadata of the attribute target, and is accessed by the system at run-time. The system uses the object returned by this method to convert the security information of the current instance into the form stored in metadata.

  One or more of the current instance's , , or properties is . 0 1.0.5000.0 2.0.0.0
- Property
  System.String

  Gets or sets the DNS host name or IP address specified by the current instance.

  A containing a DNS host name or IP address.

  This property is write-once. Once this property has been set to a non-null value, attempts to set this property to new value cause a .

  is being set and is not . 0 1.0.5000.0 2.0.0.0
- Property
  System.String

  Gets or sets the port specified by the current instance.

  A containing a port number, or "All" or -1 to indicate all ports.

  This property is write-once. Once this property has been set to a non-null value, attempts to set this property to new value cause a .

  is being set and is not . 0 1.0.5000.0 2.0.0.0
- Property
  System.String

  Gets or sets the transport type specified by the current instance.

  A containing the transport type associated with the current instance. Valid values are "All", "Connectionless", "ConnectionOriented", "Tcp", and "Udp".

  This property is write-once. Once this property has been set to a non-null value, attempts to set this property to new value cause a .

  Valid values for this property correspond to enumeration values. is being set and is not . 0 1.0.5000.0 2.0.0.0
0