TcpProtocol.ListenerPort Property

 

Applies To: SQL Server 2016 Preview

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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)]
public int ListenerPort { get; set; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property int ListenerPort {
    int get();
    void set(int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member ListenerPort : int with get, set
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Matrix)>
Public Property ListenerPort As Integer

Property Value

Type: System.Int32

An Int32 value that specifies the port address of the listener.

Examples

Legacy Code Example

Implementing Endpoints

See Also

TcpProtocol Class
Microsoft.SqlServer.Management.Smo Namespace

CREATE ENDPOINT (Transact-SQL)
Unable to find linked topic 'f10b4f19-0c67-4bd6-a5cb-93585718341b'.

Return to top