Bagikan melalui


MethodData.GetOverloadCount Method

Returns the number of method signatures that can be shown.

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
Public Function GetOverloadCount As Integer
public int GetOverloadCount()
public:
virtual int GetOverloadCount() sealed
abstract GetOverloadCount : unit -> int 
override GetOverloadCount : unit -> int 
public final function GetOverloadCount() : int

Return Value

Type: System.Int32
If there is at least one method signature, returns the number of method signatures available; otherwise, returns 0.

Implements

IVsMethodData.GetOverloadCount()

Remarks

This method is an implementation of the GetOverloadCount method on the IVsMethodData interface.

The base method forwards the call to the GetCount method on the Methods object that was passed to the Refresh method but only if the IVsTextView (so the method tip can be shown) and Methods (so there are method signatures to show) objects are valid.

.NET Framework Security

See Also

Reference

MethodData Class

Microsoft.VisualStudio.Package Namespace