Share via


Utility.ManagedInstances Property

Gets a collection containing each instance of SQL Server managed by this Utility.

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

Syntax

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

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

Property Value

Type: Microsoft.SqlServer.Management.Utility.ManagedInstanceCollection
A ManagedInstanceCollection that contains all of the instances of SQL Server managed by this Utility.

See Also

Reference

Utility Class

Microsoft.SqlServer.Management.Utility Namespace