Freigeben über


MethodData Class

Provides support for the IntelliSense method tip operation.

This API is not CLS-compliant. The CLS-compliant alternative is [None].

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Class MethodData _
    Implements IVsMethodData, IDisposable
'Usage
Dim instance As MethodData
[CLSCompliantAttribute(false)]
public class MethodData : IVsMethodData, IDisposable
[CLSCompliantAttribute(false)]
public ref class MethodData : IVsMethodData, 
    IDisposable
[<CLSCompliantAttribute(false)>]
type MethodData =  
    class
        interface IVsMethodData
        interface IDisposable
    end
public class MethodData implements IVsMethodData, IDisposable

Remarks

This class is used by the Source class to implement the IntelliSense method tip operation. This class presents the tool tip and manages it as the user types the various parameters. This class uses a Methods object to contain all of the appropriate method signatures for the method currently being typed. This Methods object is filled in by the parser when the parsing reason MethodTip is given.

Notes to Implementers

The base class already implements most of everything needed to support the IntelliSense method tip operation, so there is little need to derive from this class. If your language requires more specialized formatting of method data, then you must derive a class from the MethodData class and override the GetMethodText method. You must also override the CreateMethodData method in the Source class to create an instance of your version of the MethodData class.

This class interacts with the Methods class to obtain information on how to format method signatures. Specifically, this class consults the properties, OpenBracket, CloseBracket, Delimiter, TypePrefixed, TypePrefix, and TypePostfix to format the method signatures in the method tip. Since all of this information is obtained through the Methods class, you should not need to override the MethodData class.

Notes to Callers

This class is instantiated in the CreateMethodData method in the Source class.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Package.MethodData

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

MethodData Members

Microsoft.VisualStudio.Package Namespace