Partager via


Propriété TcpEnabled

Gets a Boolean value that specifies whether Transmission Control Protocol (TCP) is enabled on the server.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<DisplayDescriptionKeyAttribute("Server_TcpEnabledDesc")> _
<DisplayNameKeyAttribute("Server_TcpIpProtocolEnabledName")> _
ReadOnly Property TcpEnabled As Boolean
    Get
'Utilisation
Dim instance As IServerSelectionFacet
Dim value As Boolean

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

Valeur de propriété

Type : System. . :: . .Boolean
A Boolean value, True if TCP is enabled on the server, otherwise False.