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 4.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 | System.AttributeTargets.All, AllowMultiple=true, Inherited=false)

To use this attribute, your connection must conform to the properties that are specified in your . For example, to apply the permission to a connection on port 80, set the property of the to "80". The security information that is specified in is stored in the metadata of the attribute target, which is the class to which the is applied. The system then accesses the information at run time. The that is passed to the constructor determines the allowable targets.

The properties of a must have values that are not null. Also, once set, the values of the properties cannot be changed.

For more information about using attributes, see [<topic://cpconExtendingMetadataUsingAttributes>].

Specifies security actions to control connections. This class cannot be inherited.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  is not a valid value.

  The value that is passed to this constructor specifies the allowable targets.

  Initializes a new instance of the class with the specified value.

  One of the values.
  0
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String

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

  is being set and is not .

  This property is write-once. Valid values for this property correspond to enumeration values.

  Gets or sets the network access method that is allowed by this .

  0
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Security.IPermission One or more of the current instance's , , or properties is .

  The method is called by the security system, not by the application code. The security information described by is stored in the metadata of the attribute target, which is the class to which the is applied. The system then accesses the information at run-time and calls . The system uses the returned to enforce the specified security requirements.

  Creates and returns a new instance of the class.

  An instance of the class that corresponds to the security declaration.

  0
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String

  A containing a DNS host name or IP address.

  is being set and is not .

  This property is write-once and specifies the Domain Name Services (DNS) host name to which this permission applies.

  Gets or sets the DNS host name or IP address that is specified by this .

  0
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String

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

  is being set and is not .

  This property is write-once and specifies the port number to which this permission applies. The valid values are a string-encoded integer or the string "All".

  Gets or sets the port number that is associated with this .

  0
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String

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

  is being set and is not .

  Possible string values of this property are , , , , and .

  Gets or sets the that is specified by this .

  0
0