共用方式為


IVsMethodData.GetParameterCount Method

Returns the total number of parameters in a specified method.

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

Syntax

'宣告
Function GetParameterCount ( _
    iMethod As Integer _
) As Integer
int GetParameterCount(
    int iMethod
)
int GetParameterCount(
    [InAttribute] int iMethod
)
abstract GetParameterCount : 
        iMethod:int -> int 
function GetParameterCount(
    iMethod : int
) : int

Parameters

  • iMethod
    Type: System.Int32
    [in] The number of the method for which to get parameter count.

Return Value

Type: System.Int32
Returns the number of parameters in the method.

Remarks

COM Signature

From textmgr.idl:

long IVsMethodData::GetParameterCount( 
   [in] long iMethod 
);

.NET Framework Security

See Also

Reference

IVsMethodData Interface

Microsoft.VisualStudio.TextManager.Interop Namespace