共用方式為


ManagedInstance.ServerType 屬性

Gets the type of the server instance.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ServerType As Integer 
    Get
'用途
Dim instance As ManagedInstance 
Dim value As Integer 

value = instance.ServerType
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public int ServerType { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property int ServerType {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member ServerType : int
function get ServerType () : int

屬性值

型別:System.Int32
An Int32 value that specifies the server type. The Int32 values correspond to the members of the ServerType enumeration.

備註

The server type indicates whether the instance of SQL Server is a matrix or a singleton.

請參閱

參考

ManagedInstance 類別

Microsoft.SqlServer.Management.Utility 命名空間