CodeConnectAccess.Port Property


Gets the port represented by the current instance.

 property int Port { int get(); };
public int Port { get; }
member this.Port : int
Public ReadOnly Property Port As Integer

Property Value

A Int32 value that identifies a computer port used in conjunction with the Scheme property.


The following code example demonstrates displaying the value of this property.

static void DisplayProperties (CodeConnectAccess^ access)
    Console::WriteLine("Scheme:{0} Port: {1}", 
        access->Scheme, access->Port);
public static void DisplayProperties (CodeConnectAccess access)
    Console.WriteLine("Scheme:{0} Port: {1}", access.Scheme, access.Port);


Port values are between 0 and 65,535. The port value is specified when you create an instance of CodeConnectAccess.

Applies to