IScope::GetMethods Method

Returns the method information for a method.

HRESULT GetMethods ( 
   long line,
   long idx,
   INames* names,
   IMethods** imethods
);

Parameters

  • line
    [in] Specifies the line for which to determine the method information (that is, the line containing the cursor).

  • idx
    [in] Specifies an index position within the line, for which to determine the method information. The line index is zero-based and refers to the position of the cursor within the line.

  • names
    [in] Specifies a qualified name (a name and selector pair). For more information, see INames Interface.

  • imethods
    [out] Returns the methods object containing the method information. For more information, see IMethods Interface.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method is called in response to the IntelliSense Parameter Info option or by the TriggerClass values encompassed in the value TriggerMethodTip. This sets up a parse with the ParseReason value of ReasonMethodTip that in turn parses the method name near the specified position to produce a qualified name that is eventually passed in to the IScope::GetMethods method in the names parameter.

See Also

Concepts

IScope Interface

IMethods Interface

INames Interface

TriggerClass

ParseReason