![]() 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. Getting the value of this property is an O(1) operation.This method will find any MonitoringObject instances that are related to the MonitoringObjects The following code shows the use of the SyncRoot property for C#, C++, and Visual Basic. ![]() Synchronization is effective only if all threads lock the object before accessing the collection. The SyncRoot property returns an object that can be used to synchronize access to the ICollection. ![]() To allow the collection to be accessed by multiple threads for reading and writing, you must implement your own synchronization. To guarantee thread safety during enumeration, you can lock the collection during the entire enumeration. Default implementations of collections in the namespace are not synchronized.Įnumerating through a collection is intrinsically not a thread-safe procedure.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |