ArcObjects Library Reference (NetworkAnalystUI)  

INAWindow.DelayEvents Method

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
);

Product Availability

Available with ArcGIS Desktop. Requires Network Analyst Extension.

Remarks

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.

See Also

INAWindow Interface

.NET Snippets

Clear NAClass | Clear Active Analysis Layer |