This document is archived and information here might be outdated.  Recommended version.


IEngineNAWindow.DelayEvents Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

IEngineNAWindow.DelayEvents Method

Indicates if events should be delayed for a category.

[Visual Basic .NET]
Public Sub DelayEvents ( _
    ByVal pCategory As IEngineNAWindowCategory, _
    ByVal flag As Boolean _
)
[C#]
public void DelayEvents (
    IEngineNAWindowCategory pCategory,
    bool flag
);
[C++]
HRESULT DelayEvents(
  IEngineNAWindowCategory* pCategory,
  VARIANT_BOOL flag
);
[C++]

Parameters pCategory [in]
pCategory is a parameter of type IEngineNAWindowCategory* flag [in]
flag is a parameter of type bool

Product Availability

Available with ArcGIS Engine.

Description

DelayEvents notifies the IEngineNetworkAnalystEnvironment::NAWindow to start/stop listening to IObjectClassEvents on a particular NAClass specified by the category or on all the INAContext::NAClasses if no category is passed in.

If the flag parameter is true, the IEngineNetworkAnalystEnvironment::NAWindow will ignore all IObjectClassEvents for the category. If the flag parameter is false, the IEngineNetworkAnalystEnvironment::NAWindow will begin listening to the events.

This method is useful if you are going to be updating alot of NALocationObject objects in a NAClass and want the application to be as responsive as possible. Pass in true to DelayEvents to perform the update on the NAClass, or pass in false to DelayEvents and then call UpdateContent.

See Also

IEngineNAWindow Interface

.NET Related Topics

How to set up an ArcGIS Network Analyst extension solve to work with the undo/redo stack