System.Security.Policy.CodeConnectAccess.OriginPort Field

Contains the value used to represent the port value in the URI where code originated.

Value: -4

Syntax

public static readonly int OriginPort

Remarks

To create a System.Security.Policy.CodeConnectAccess object that has the same port as the port in the executing code's URL evidence, use this field as the allowPort parameter of the CodeConnectAccess.#ctor(string, int) constructor.

The value of this field is -4.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0