The MonitorListener type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
SnapshotReceived(Snapshot)
Called by a StreamBaseMonitor object when it has received a Snapshot.

The snapshot object must only be used within the invocation of this method, as it will cease to be valid as soon as SnapshotReceived returns. For example, an implementation of this interface should not pass the snapshot object to another thread for asynchronous processing, because the snapshot may have become invalid by the time that thread receives the snapshot.

If you need to store a snapshot for later processing, you may Clone() individual objects in the snapshot (ThreadInfo, SystemInfo, etc.)

See Also