Compartir a través de


IVsMethodData.GetMethodText(Int32, MethodTextType) Method

Definition

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

public:
 IntPtr GetMethodText(int iMethod, Microsoft::VisualStudio::TextManager::Interop::MethodTextType type);
public IntPtr GetMethodText (int iMethod, Microsoft.VisualStudio.TextManager.Interop.MethodTextType type);
abstract member GetMethodText : int * Microsoft.VisualStudio.TextManager.Interop.MethodTextType -> nativeint
Public Function GetMethodText (iMethod As Integer, type As MethodTextType) As IntPtr

Parameters

iMethod
Int32

[in] Method number.

type
MethodTextType

[in] Method text type values to return. For a list of type values see MethodTextType.

Returns

IntPtr

nativeint

Returns the text of the specified method type. May be null.

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.

Applies to