ExtExtension::HasUnnamedArg method (engextcpp.hpp)

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

Syntax

bool HasUnnamedArg(
  [in] ULONG Index
);

Parameters

[in] Index

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

Requirement Value
Target Platform Desktop
Header engextcpp.hpp (include Engextcpp.hpp)

See also

ExtExtension

GetNumUnnamedArgs