This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineNAWindow Interface > IEngineNAWindow.DelayEvents Method (ArcObjects .NET 10.5 SDK) |
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 VARIANT_BOOL
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.