ModelWatcher

Return to Introduction  Previous page  Next page

public Class

The ModelWatcher object enables an automation client to track changes in a particular model.

Note: After your model has been loaded, you only create the ModelWatcher once. If you reload the model, or load another model, the created ModelWatcher is still valid.

ModelWatcher Attributes

Attribute

Type

Notes

ObjectType

ObjectType

Read only. Distinguishes objects referenced through a Dispatch interface.

ModelWatcher Methods

Methods

Type

Notes

GetReloadItem

ReloadType

Params: Item: Object

The object that must be reloaded in order to see all changes is returned through the Item parameter. If there are no changes or the entire model must be reloaded, this value is returned as null (C#) or Nothing (VB).

Returns: A value from the ReloadType enumeration that specifies which type of change, if any, has occurred.

Calling this method clears the records so that the next time it is called the return values refer only to new changes.

PeekReloadItem

ReloadType

This method behaves identically to GetReloadItem() but does not clear the change record.