共用方式為


Server.TcpEnabled 屬性

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property TcpEnabled As Boolean 
    Get
'用途
Dim instance As Server 
Dim value As Boolean 

value = instance.TcpEnabled
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool TcpEnabled { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool TcpEnabled {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member 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. Returns True if TCP/IP is enabled, or False if TCP/IP is not enabled.

請參閱

參考

Server 類別

Microsoft.SqlServer.Management.Smo 命名空間