System.Security.Policy.CodeConnectAccess.CreateAnySchemeAccess Method

Returns a System.Security.Policy.CodeConnectAccess instance that represents access to the specified port using any scheme.

Syntax

public static CodeConnectAccess CreateAnySchemeAccess (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 uses the scheme wildcard value CodeConnectAccess.AnyScheme ("*") to represent the scheme.

Requirements

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