Udostępnij przez


Właściwość IServerSetupFacet.TcpEnabled

Pobiera Boolean wartość określa, czy protokół TCP/IP jest włączony na wystąpienie SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<DisplayNameKeyAttribute("Server_TcpEnabledName")> _
<DisplayDescriptionKeyAttribute("Server_TcpEnabledDesc")> _
ReadOnly Property TcpEnabled As Boolean
    Get
'Użycie
Dim instance As IServerSetupFacet
Dim value As Boolean

value = instance.TcpEnabled
[DisplayNameKeyAttribute("Server_TcpEnabledName")]
[DisplayDescriptionKeyAttribute("Server_TcpEnabledDesc")]
bool TcpEnabled { get; }
[DisplayNameKeyAttribute(L"Server_TcpEnabledName")]
[DisplayDescriptionKeyAttribute(L"Server_TcpEnabledDesc")]
property bool TcpEnabled {
    bool get ();
}
[<DisplayNameKeyAttribute("Server_TcpEnabledName")>]
[<DisplayDescriptionKeyAttribute("Server_TcpEnabledDesc")>]
abstract TcpEnabled : bool
function get TcpEnabled () : boolean

Wartość właściwości

Typ: System.Boolean
A Boolean wartość, która określa, czy protokół TCP/IP jest włączony na wystąpienie SQL Server.
Jeśli True, protokół TCP/IP jest włączony.W przeciwnym razie jest używana wartość False.