Share via


IMethods Interface

Returns information about method signatures needed to support the IntelliSense Parameter Info.

IMethods : IDispatch

Methods in Vtable Order

The following table shows the methods of this interface.

Method

Description

IMethods::GetName Method

Returns the name of the method or methods.

IMethods::GetCount Method

Returns the number of method signatures.

IMethods::GetDescription Method

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

IMethods::GetType Method

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

IMethods::GetParameterCount Method

Returns the number of parameters of the specified method in the method set.

IMethods::GetParameterInfo Method

Returns the name, display information, and description of the specified parameter of the specified method.

Remarks

When Babel needs to provide method information to the user, it calls the IScope::GetMethods Method and passes in the line and index position of the caret as well as the qualified method name. This information is used to return an IMethods object that provides Babel with the information needed to populate the IntelliSense Parameter Info ToolTip.

The IMethods interface is an abstraction of the IntelliSense Parameter Info ToolTip in Visual Studio. This interface allows Babel to handle a set of method signatures, where each signature contains the parameters and type information. An IMethods object is a set of methods rather than a single method, because there might be multiple methods with the same name (that is, overloaded methods). The information returned from this interface is used to construct the contents of the IntelliSense Parameter Info ToolTip, which is updated frequently as the user types the matching method into the source. The format of the method signature is dictated by what is returned from the IBabelService::GetMethodFormat Method.

Note

Typically, the IMethods object is created when the IScope::GetMethods Method is called and the object is populated from the results of the last full parse operation (with the parse reason ReasonCheck).

Notes for Implementers

Implement this interface to provide method information to Babel based on information passed to you in the IScope::GetMethods Method method. If you are The Default Babel Implementation in the Language Service Package, then there is no need to override or otherwise implement this interface.

Notes for Callers

This interface is obtained from a call to the IScope::GetMethods Method.

Requirements

Header: BabelService.idl

See Also

Concepts

The Default Babel Implementation in the Language Service Package

Reference

IBabelService::GetMethodFormat Method

Other Resources

Babel Interfaces