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


INAWindowCommand2.AppliesToGroup Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (NetworkAnalystUI)  

INAWindowCommand2.AppliesToGroup Method

Indicates if a network analysis layer and category or category group is supported.

[Visual Basic .NET]
Public Function AppliesToGroup ( _
    ByVal naLayer As INALayer, _
    ByVal categoryGroup As INAWindowCategoryGroup _
) As Boolean
[C#]
public bool AppliesToGroup (
    INALayer naLayer,
    INAWindowCategoryGroup categoryGroup
);

Product Availability

Available with ArcGIS Desktop. Requires Network Analyst Extension.

Remarks

The AppliesToGroup method returns whether or not the command should be exposed on the context menu specified by the input NALayer and NAWindowCategoryGroup.  If it applies it will appear on the context menu for the category group or an item in a group.

See Also

INAWindowCommand2 Interface