This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalystUI > ESRI.ArcGIS.NetworkAnalystUI > Interfaces > IN > INAWindow Interface > INAWindow.DelayEvents Method (ArcObjects .NET 10.4 SDK) |
Indicates if events should be delayed for a category.
[Visual Basic .NET] Public Sub DelayEvents ( _ ByVal pNAWCategory As INAWindowCategory, _ ByVal flag As Boolean _ )
[C#] public void DelayEvents ( INAWindowCategory pNAWCategory, bool flag );
DelayEvents notifies the NAWindow to start/stop listening to IObjectClassEvents on a particular NAClass specified by the category or on all the NAClasses if no category is passed in.
If the flag parameter is true, the NAWindow will ignore all IObjectClassEvents for category. If the flag parameter is true, the NAWindow will begin listening to the events.
This method is useful if you are going to be updating alot of NALocationObjects in a NAClass and want the application to be as responsive as possible. Pass in True to DelayEvents, perform the update on the NAClass, Pass in False to DelayEvents, and then call UpdateContent.