CodeConnectAccess.Port 属性
定义
获取当前实例表示的端口。Gets the port represented by the current instance.
public:
property int Port { int get(); };
public int Port { get; }
member this.Port : int
Public ReadOnly Property Port As Integer
属性值
一个 Int32 值,标识与 Scheme 属性一起使用的计算机端口。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);
}
注解
端口值介于0和65535之间。Port values are between 0 and 65,535. 端口值是在创建的实例时指定的 CodeConnectAccess 。The port value is specified when you create an instance of CodeConnectAccess.