Compartir a través de


IVsMethodData.GetMethodText Method

Returns a method return type, method name, or method description.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

Function GetMethodText ( _
    iMethod As Integer, _
    type As MethodTextType _
) As IntPtr

Dim instance As IVsMethodData
Dim iMethod As Integer
Dim type As MethodTextType
Dim returnValue As IntPtr

returnValue = instance.GetMethodText(iMethod, _
    type)
IntPtr GetMethodText(
    int iMethod,
    MethodTextType type
)
IntPtr GetMethodText(
    [InAttribute] int iMethod, 
    [InAttribute] MethodTextType type
)
function GetMethodText(
    iMethod : int, 
    type : MethodTextType
) : IntPtr

Parameters

Return Value

Type: System.IntPtr

Remarks

COM Signature

From textmgr.idl:

const WCHAR * IVsMethodData::GetMethodText(
   [in] long iMethod, 
   [in] MethodTextType type
);

This method is called repeatedly by the view to display the various portions of the method text as determined by the values specified in the type parameter. These values include information for method type, name, description, bracket, and delimiter. If brackets (parentheses, and so on) and delimiters are not required for your language, return an empty string to force the view to display nothing.

Permissions

See Also

Reference

IVsMethodData Interface

IVsMethodData Members

Microsoft.VisualStudio.TextManager.Interop Namespace