IVsMethodData.GetParameterText Method
Gets the text, usually the name, of a specified parameter for a specified method.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
声明
Function GetParameterText ( _
iMethod As Integer, _
iParm As Integer, _
type As ParameterTextType _
) As IntPtr
IntPtr GetParameterText(
int iMethod,
int iParm,
ParameterTextType type
)
IntPtr GetParameterText(
[InAttribute] int iMethod,
[InAttribute] int iParm,
[InAttribute] ParameterTextType type
)
abstract GetParameterText :
iMethod:int *
iParm:int *
type:ParameterTextType -> IntPtr
function GetParameterText(
iMethod : int,
iParm : int,
type : ParameterTextType
) : IntPtr
Parameters
- iMethod
Type: System.Int32
[in] Method number for which to obtain parameter information.
- iParm
Type: System.Int32
[in] Parameter number for which information is required.
- type
Type: Microsoft.VisualStudio.TextManager.Interop.ParameterTextType
[in] Parameter type. For a list of type values, see ParameterTextType.
Return Value
Type: System.IntPtr
Returns the text of the specified parameter. May be nulla null reference (Nothing in Visual Basic).
Remarks
COM Signature
From textmgr.idl:
const WCHAR * IVsMethodData::GetParameterText(
[in] long iMethod,
[in] long iParm,
[in] ParameterTextType type
);
Use this method to return parameter name, description, or declaration information to the view.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.