Delen via


Utility.Computers Property

Gets the collection of computers running managed instances.

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(Computer))> _
Public ReadOnly Property Computers As ComputerCollection
    Get
'Usage
Dim instance As Utility
Dim value As ComputerCollection

value = instance.Computers
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Computer))]
public ComputerCollection Computers { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(Computer))]
public:
property ComputerCollection^ Computers {
    ComputerCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Computer))>]
member Computers : ComputerCollection
function get Computers () : ComputerCollection

Property Value

Type: Microsoft.SqlServer.Management.Utility.ComputerCollection
A ComputerCollection value containing the collection of computers running managed instances of SQL Server.