Partilhar via


Propriedade TcpEnabled

Gets the Boolean value that determines whether TCP/IP protocol is enabled on the instance of SQL Server.

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

Sintaxe

'Declaração
<DisplayNameKeyAttribute("Server_TcpEnabledName")> _
<DisplayDescriptionKeyAttribute("Server_TcpEnabledDesc")> _
ReadOnly Property TcpEnabled As Boolean
    Get
'Uso
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

Valor da propriedade

Tipo: System. . :: . .Boolean
A Boolean value that specifies whether TCP/IP protocol is enabled on the instance of SQL Server.
If True, TCP/IP is enabled. Otherwise, False.