共用方式為


ConnectionType 屬性

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

語法

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

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