Udostępnij przez


Właściwość Computer.IsClustered

Pobiera Boolean wartość określa, czy komputer jest w klastrze.

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

Składnia

'Deklaracja
<SfcPropertyAttribute> _
Public ReadOnly Property IsClustered As Boolean
    Get
'Użycie
Dim instance As Computer
Dim value As Boolean

value = instance.IsClustered
[SfcPropertyAttribute]
public bool IsClustered { get; }
[SfcPropertyAttribute]
public:
property bool IsClustered {
    bool get ();
}
[<SfcPropertyAttribute>]
member IsClustered : bool
function get IsClustered () : boolean

Wartość właściwości

Typ: System.Boolean
A Boolean wartość, która określa, czy komputer jest w klastrze.Jeśli True, komputer jest w klastrze.W przeciwnym razie jest używana wartość False.

Przykłady

VC #

System.Console.WriteLine(computer.IsClustered);

VB

System.Console.WriteLine(computer.IsClustered)

PowerShell

Write-Host $computer.IsClustered