![]() ![]() ![]() ![]() Public > GetRelatedMonitoringObjects ( monitoringObjects, criteriaCollection, traversalDepth) where T : member this.GetRelatedMonitoringObjects : )> * * -> (requires 'T :> )> (requires 'T :> ) Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), criteriaCollection As ICollection(Of MonitoringObjectCriteria), traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnl圜ollection(Of MonitoringObject)) Type Parameters Where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection ^ monitoringObjects, System::Collections::Generic::ICollection ^ criteriaCollection, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth) Public > GetRelatedMonitoringObjects ( monitoringObjects, monitoringClasses, traversalDepth) where T : member this.GetRelatedMonitoringObjects : )> * * -> (requires 'T :> )> (requires 'T :> ) Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), monitoringClasses As IList(Of MonitoringClass), traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnl圜ollection(Of MonitoringObject)) Type Parameters Where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection ^ monitoringObjects, System::Collections::Generic::IList ^ monitoringClasses, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth) Provided by Membership, and of the given type or any derived types. Public > GetRelatedMonitoringObjects ( monitoringObjects, criteria, traversalDepth) where T : member this.GetRelatedMonitoringObjects : )> * * -> (requires 'T :> )> (requires 'T :> ) Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), criteria As MonitoringObjectCriteria, traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnl圜ollection(Of MonitoringObject)) Type Parameters Where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection ^ monitoringObjects, Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth) Provided by any containment relationship and of the specified criteria. In the following snippet, I have used the count property of the collection.This method will find any MonitoringObject instances that are related to the MonitoringObjects Now, let me proceed and explain these properties one by one. However, ICollection uses the following to modify the collection:Īpart from this, it also gives the count of the collection and checks for the containing element with contains(). However, the basic difference between ICollection and IEnumerable is that ICollection is a write operation and IEnumerable is a read-only operation only meant for iteration. Now, ICollection declares an object for an in-memory collection. ![]() private static void Main( string args). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |