共用方式為


ConnectionInfoBase.ServerType 屬性

Gets or sets the server connection type.

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

語法

'宣告
Public ReadOnly Property ServerType As ConnectionType 
    Get
'用途
Dim instance As ConnectionInfoBase 
Dim value As ConnectionType 

value = instance.ServerType
public ConnectionType ServerType { get; }
public:
property ConnectionType ServerType {
    ConnectionType get ();
}
member ServerType : ConnectionType
function get ServerType () : ConnectionType

屬性值

型別:Microsoft.SqlServer.Management.Common.ConnectionType
A ConnectionType system object value that specifies the type of connection.

請參閱

參考

ConnectionInfoBase 類別

Microsoft.SqlServer.Management.Common 命名空間