مشاركة عبر


TcpProtocol.ListenerPort Property

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

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ListenerPort As Integer 
    Get 
    Set
'Usage
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)

Property Value

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

Examples

Implementing Endpoints

See Also

Reference

TcpProtocol Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Network Protocols and TDS Endpoints

CREATE ENDPOINT (Transact-SQL)