Share via


IMethods::GetType Method

Returns the type of the specified method in the method set.

HRESULT GetType ( 
   long index,
   BSTR* type
);

Parameters

  • index
    [in] Specifies the index of the method in the method set.

  • type
    [out] Returns a string containing the method type. This value should not be NULL.

Return Value

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

Remarks

The type parameter returns a string that is used to format the method signature in the IntelliSense method tip. The parameter represents the return type of the method; for example, the "long" in long myMethod().

See Also

Reference

IMethods Interface