Udostępnij przez


Właściwość ManagedInstance.ServerType

Pobiera typ wystąpienie serwera.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Utility
Zestaw:  Microsoft.SqlServer.Management.Utility (w Microsoft.SqlServer.Management.Utility.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ServerType As Integer
    Get
'Użycie
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

Wartość właściwości

Typ: System.Int32
Int32 Wartość określająca typ serwera.Int32 Wartości odpowiadają członków ServerType wyliczania.

Uwagi

Typ serwera wskazuje, czy wystąpienie SQL Server jest macierz lub pojedynczych.