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


ICommandSubType.SetSubType Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (SystemUI)  

ICommandSubType.SetSubType Method

The subtype of the command.

[Visual Basic .NET]
Public Sub SetSubType ( _
    ByVal SubType As Integer _
)
[C#]
public void SetSubType (
    int SubType
);
[C++]
HRESULT SetSubType(
  long SubType
);
[C++]

Parameters SubType [in] SubType is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

A separate instance of the subtyped command is created for each command item required, and it's Subtype is set after instantiation. The subtype of any instance will remain throughout the instance's lifetime, but will vary from instance to instance. Save the value which is passed to SetSubType as a member variable, so that you can complete the members of ICommand appropriately.

Use a case statement in each property of ICommand to determine which subtype is being queried.

See Also

ICommandSubType Interface