共用方式為


IServerSetupFacet.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 中)

語法

'宣告
<DisplayDescriptionKeyAttribute("Server_TcpEnabledDesc")> _
<DisplayNameKeyAttribute("Server_TcpEnabledName")> _
ReadOnly Property TcpEnabled As Boolean 
    Get
'用途
Dim instance As IServerSetupFacet 
Dim value As Boolean 

value = instance.TcpEnabled
[DisplayDescriptionKeyAttribute("Server_TcpEnabledDesc")]
[DisplayNameKeyAttribute("Server_TcpEnabledName")]
bool TcpEnabled { get; }
[DisplayDescriptionKeyAttribute(L"Server_TcpEnabledDesc")]
[DisplayNameKeyAttribute(L"Server_TcpEnabledName")]
property bool TcpEnabled {
    bool get ();
}
[<DisplayDescriptionKeyAttribute("Server_TcpEnabledDesc")>]
[<DisplayNameKeyAttribute("Server_TcpEnabledName")>]
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.

範例

設定屬性

請參閱

參考

IServerSetupFacet 介面

Microsoft.SqlServer.Management.Smo 命名空間