TcpProtocol.ListenerPort 属性

Gets or sets the port address of the listener for the TCP protocol.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ListenerPort As Integer 
    Get 
    Set
用法
Dim instance As TcpProtocol 
Dim value As Integer 

value = instance.ListenerPort

instance.ListenerPort = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int ListenerPort { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int ListenerPort {
    int get ();
    void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ListenerPort : int with get, set
function get ListenerPort () : int 
function set ListenerPort (value : int)

属性值

类型:System.Int32
An Int32 value that specifies the port address of the listener.

示例

实现端点

请参阅

参考

TcpProtocol 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

网络协议和 TDS 端点

CREATE ENDPOINT (Transact-SQL)