ExtExtension.HasUnnamedArg method

The HasUnnamedArg method indicates whether a specified unnamed argument is present in the command line used to invoke the current extension command.

Syntax

c++
bool HasUnnamedArg(
  [in] ULONG Index
);

Parameters

  • Index [in]
    Specifies the index of the argument. Index should be between zero and the number of unnamed arguments returned by GetNumUnnamedArgs minus one (unnamed arguments - 1).

Return value

HasUnnamedArg returns true if the argument is present; false if it is not present.

Remarks

This method will work for all types of unnamed arguments. For an overview of argument parsing in the EngExtCpp extensions framework, see Parsing Extension Arguments.

This method should only be called during the execution of an extension command provided by this class.

Requirements

Target platform

Desktop

Header

Engextcpp.hpp (include Engextcpp.hpp)

See also

ExtExtension

GetNumUnnamedArgs

 

 

Send comments about this topic to Microsoft