System.Security.Policy.CodeConnectAccess.CreateOriginSchemeAccess Method

Returns a System.Security.Policy.CodeConnectAccess instance that represents access to the specified port using the code's scheme of origin.

Syntax

public static CodeConnectAccess CreateOriginSchemeAccess (int allowPort)

Parameters

allowPort
The port represented by the returned instance.

Returns

A System.Security.Policy.CodeConnectAccess instance for the specified port.

Remarks

The System.Security.Policy.CodeConnectAccess instance returned by this method has the scheme value CodeConnectAccess.OriginScheme. The origin scheme is the scheme value from the URI where the code originated.

Requirements

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