PartialMonitoringObject.GetMonitoringRelationshipObjectsWhereSource Method

Definition

Retrieves the relationships for which this partial monitoring object is a source in the relationship.

Overloads

GetMonitoringRelationshipObjectsWhereSource()
Obsolete.

Gets the relationships of which this PartialMonitoringObject is the source.

GetMonitoringRelationshipObjectsWhereSource(TraversalDepth)
Obsolete.

Retrieves all the relationships that this monitoring object is the source.

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipClass)
Obsolete.

Retrieves all the relationships that this monitoring object is the source of the given relationship type.

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipObjectGenericCriteria)
Obsolete.

Retrieves all the relationships that this monitoring object is the source of and applies the given criteria.

GetMonitoringRelationshipObjectsWhereSource(ICollection<MonitoringRelationshipClass>)
Obsolete.

Retrieves all the relationships that this monitoring object is the source of any of the given relationship types.

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipClass, DerivedClassTraversalDepth)
Obsolete.

Retrieves all the relationships that this monitoring object is the source of the given relationship type, optionally including their derived types.

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipObjectGenericCriteria, TraversalDepth)
Obsolete.

Retrieves all the relationships that this monitoring object is the source of and applies the given criteria, optionally including relationships where the instances this instance contains via the Containment relationship type or above are the source.

GetMonitoringRelationshipObjectsWhereSource(ICollection<MonitoringRelationshipClass>, DerivedClassTraversalDepth)
Obsolete.

Retrieves all the relationships that this monitoring object is the source of any of the given relationship types, optionally including their derived types.

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipClass, DerivedClassTraversalDepth, TraversalDepth)
Obsolete.

Retrieves all the relationships that this monitoring object is the source of the given relationship type, optionally including their derived types and optionally including relationships where the instances this instance contains via the Containment relationship type or above are the source.

GetMonitoringRelationshipObjectsWhereSource(ICollection<MonitoringRelationshipClass>, DerivedClassTraversalDepth, TraversalDepth)
Obsolete.

Retrieves all the relationships that this monitoring object is the source of any of the given relationship types, optionally including their derived types and optionally including relationships where the instances this instance contains via the Containment relationship type or above are the source.

GetMonitoringRelationshipObjectsWhereSource()

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Gets the relationships of which this PartialMonitoringObject is the source.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource();
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource ();
member this.GetMonitoringRelationshipObjectsWhereSource : unit -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource () As ReadOnlyCollection(Of MonitoringRelationshipObject)

Returns

A collection of relationships containing this PartialMonitoringObject as the source.

Attributes

Examples

For a code example that uses this method, see How to Display Information about a Monitoring Object

Applies to

GetMonitoringRelationshipObjectsWhereSource(TraversalDepth)

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Retrieves all the relationships that this monitoring object is the source.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource(Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource (Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetMonitoringRelationshipObjectsWhereSource : Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource (traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

traversalDepth
TraversalDepth

The traversal depth.

Returns

A collection of Relationship instances.

Attributes

Applies to

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipClass)

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Retrieves all the relationships that this monitoring object is the source of the given relationship type.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource(Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass);
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource (Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass);
member this.GetMonitoringRelationshipObjectsWhereSource : Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource (relationshipClass As MonitoringRelationshipClass) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

relationshipClass
MonitoringRelationshipClass

The relationship type.

Returns

A collection of Relationship instances.

Attributes

Exceptions

relationshipType is null.

Remarks

The returned collection contains the monitoring relationship objects that have as a source the [GetMonitoringRelationshipObjectsWhereSource Method]() object, and the class is the same as the [GetMonitoringRelationshipObjectsWhereSource Method]() object.

Applies to

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipObjectGenericCriteria)

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Retrieves all the relationships that this monitoring object is the source of and applies the given criteria.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource(Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObjectGenericCriteria ^ criteria);
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource (Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObjectGenericCriteria criteria);
member this.GetMonitoringRelationshipObjectsWhereSource : Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObjectGenericCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource (criteria As MonitoringRelationshipObjectGenericCriteria) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

Returns

A collection of Relationship instances.

Attributes

Remarks

Gets the relationships for which this partial monitoring object is a source in the relationships that meet the criteria filter.

You can iterate through the collection to obtain any specific MonitoringRelationshipObjectobject.

The criteriaparameter is used to identify monitoring relationships that will pass through the filter. Monitoring relationships within the returned collection meet this filter requirement.

Applies to

GetMonitoringRelationshipObjectsWhereSource(ICollection<MonitoringRelationshipClass>)

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Retrieves all the relationships that this monitoring object is the source of any of the given relationship types.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource(System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^> ^ relationshipClasses);
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource (System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass> relationshipClasses);
member this.GetMonitoringRelationshipObjectsWhereSource : System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource (relationshipClasses As ICollection(Of MonitoringRelationshipClass)) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

relationshipClasses
ICollection<MonitoringRelationshipClass>

The relationship classes.

Returns

A collection of Relationship instances.

Attributes

Exceptions

relationshipTypes is null.

relationshipTypes is empty

Applies to

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipClass, DerivedClassTraversalDepth)

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Retrieves all the relationships that this monitoring object is the source of the given relationship type, optionally including their derived types.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource(Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass, Microsoft::EnterpriseManagement::Configuration::DerivedClassTraversalDepth derivedClassTraversalDepth);
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource (Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass, Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth derivedClassTraversalDepth);
member this.GetMonitoringRelationshipObjectsWhereSource : Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass * Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource (relationshipClass As MonitoringRelationshipClass, derivedClassTraversalDepth As DerivedClassTraversalDepth) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

relationshipClass
MonitoringRelationshipClass

The relationship type.

derivedClassTraversalDepth
DerivedClassTraversalDepth

Whether to include the relationship classes derived classes.

Returns

A collection of Relationship instances.

Attributes

Exceptions

relationshipType is null.

Remarks

Gets the relationships for which this partial monitoring object is a source in the relationship, filtered by the relationshipClass object. Gets the relationships from the current [GetMonitoringRelationshipObjectsWhereSource Method (MonitoringRelationshipClass,]() object, or optionally from all derived classes. The returned collection contains the monitoring relationship objects that have as a source the object and the class is the same as the relationshipClass object.

The derivedClassTraversalDepth specifies whether to return the relationship object from derived classes. A depth of None specifies not to traverse down to the derived classes in the inheritance hierarchy, and a Recursive depth specifies that all derived classes are to be searched.

Applies to

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipObjectGenericCriteria, TraversalDepth)

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Retrieves all the relationships that this monitoring object is the source of and applies the given criteria, optionally including relationships where the instances this instance contains via the Containment relationship type or above are the source.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource(Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObjectGenericCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource (Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObjectGenericCriteria criteria, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetMonitoringRelationshipObjectsWhereSource : Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObjectGenericCriteria * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource (criteria As MonitoringRelationshipObjectGenericCriteria, traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

traversalDepth
TraversalDepth

Whether to recurse and include contained instances of this instance.

Returns

A collection of Relationship instances.

Attributes

Remarks

Gets the relationships for which this partial monitoring object is a source in the relationship. Gets the relationships from the current [GetMonitoringRelationshipObjectsWhereSource Method (MonitoringRelationshipObjectGenericCriteria,]() object, or optionally from related objects.

You can iterate through the collection to obtain any specific MonitoringRelationshipObject object.

The criteria parameter is used to identify monitoring relationships that will pass through the filter. Monitoring relationships within the returned collection meet this filter requirement.

The [GetMonitoringRelationshipObjectsWhereSource Method (MonitoringRelationshipObjectGenericCriteria,]() specifies whether to return a relationship object from entities contained by this object. A depth of Onelevel implies that the instance of the given class is used, and a Recursive depth implies that all the subclasses are also used.

Applies to

GetMonitoringRelationshipObjectsWhereSource(ICollection<MonitoringRelationshipClass>, DerivedClassTraversalDepth)

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Retrieves all the relationships that this monitoring object is the source of any of the given relationship types, optionally including their derived types.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource(System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^> ^ relationshipClasses, Microsoft::EnterpriseManagement::Configuration::DerivedClassTraversalDepth derivedClassTraversalDepth);
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource (System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass> relationshipClasses, Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth derivedClassTraversalDepth);
member this.GetMonitoringRelationshipObjectsWhereSource : System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass> * Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource (relationshipClasses As ICollection(Of MonitoringRelationshipClass), derivedClassTraversalDepth As DerivedClassTraversalDepth) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

relationshipClasses
ICollection<MonitoringRelationshipClass>

The relationship classes.

derivedClassTraversalDepth
DerivedClassTraversalDepth

Whether to include the relationship classes derived classes.

Returns

A collection of Relationship instances.

Attributes

Exceptions

relationshipTypes is null.

relationshipTypes is empty

Applies to

GetMonitoringRelationshipObjectsWhereSource(MonitoringRelationshipClass, DerivedClassTraversalDepth, TraversalDepth)

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Retrieves all the relationships that this monitoring object is the source of the given relationship type, optionally including their derived types and optionally including relationships where the instances this instance contains via the Containment relationship type or above are the source.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource(Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass, Microsoft::EnterpriseManagement::Configuration::DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource (Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass, Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetMonitoringRelationshipObjectsWhereSource : Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass * Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource (relationshipClass As MonitoringRelationshipClass, derivedClassTraversalDepth As DerivedClassTraversalDepth, traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

relationshipClass
MonitoringRelationshipClass

The relationship type.

derivedClassTraversalDepth
DerivedClassTraversalDepth

Whether to include the relationship classes derived classes.

traversalDepth
TraversalDepth

Whether to recurse and include contained instances of this instance.

Returns

A collection of Relationship instances.

Attributes

Exceptions

relationshipType is null.

Applies to

GetMonitoringRelationshipObjectsWhereSource(ICollection<MonitoringRelationshipClass>, DerivedClassTraversalDepth, TraversalDepth)

Caution

Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource

Retrieves all the relationships that this monitoring object is the source of any of the given relationship types, optionally including their derived types and optionally including relationships where the instances this instance contains via the Containment relationship type or above are the source.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringRelationshipObject ^> ^ GetMonitoringRelationshipObjectsWhereSource(System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^> ^ relationshipClasses, Microsoft::EnterpriseManagement::Configuration::DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Use ManagementGrou.EntityObjects.GetMonitoringRelationshipObjectsWhereSource")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject> GetMonitoringRelationshipObjectsWhereSource (System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass> relationshipClasses, Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetMonitoringRelationshipObjectsWhereSource : System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass> * Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringRelationshipObject>
Public Function GetMonitoringRelationshipObjectsWhereSource (relationshipClasses As ICollection(Of MonitoringRelationshipClass), derivedClassTraversalDepth As DerivedClassTraversalDepth, traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringRelationshipObject)

Parameters

relationshipClasses
ICollection<MonitoringRelationshipClass>

The relationship classes.

derivedClassTraversalDepth
DerivedClassTraversalDepth

Whether to include the relationship classes derived classes.

traversalDepth
TraversalDepth

Whether to recurse and include contained instances of this instance.

Returns

A collection of Relationship instances.

Attributes

Exceptions

relationshipTypes is null.

relationshipTypes is empty

Applies to