Share via


IMonitoringInstancesManagement.GetRootObjects<T> Method

Definition

Returns the root objects based on the current users security scope.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject System::Collections::Generic::IList<T> ^ GetRootObjects(Microsoft::EnterpriseManagement::Common::ObjectQueryOptions ^ queryOptions);
public System.Collections.Generic.IList<T> GetRootObjects<T> (Microsoft.EnterpriseManagement.Common.ObjectQueryOptions queryOptions) where T : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject;
abstract member GetRootObjects : Microsoft.EnterpriseManagement.Common.ObjectQueryOptions -> System.Collections.Generic.IList<'T (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)> (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)
Public Function GetRootObjects(Of T As EnterpriseManagementObject) (queryOptions As ObjectQueryOptions) As IList(Of T)

Type Parameters

T

At least an EnterpriseManagementObject

Parameters

queryOptions
ObjectQueryOptions

The query options.

Returns

IList<T>

A new T collection containing the scoped root level objects.

Applies to