TcpEnabled 属性

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<DisplayNameKeyAttribute("Server_TcpEnabledName")> _
<DisplayDescriptionKeyAttribute("Server_TcpEnabledDesc")> _
ReadOnly Property TcpEnabled As Boolean
    Get
用法
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

属性值

类型: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.

示例

设置属性