共用方式為


Methods.GetType Method (Int32)

When implemented in a derived class, gets the return type of the specified method signature.

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

'宣告
Public MustOverride Function GetType ( _
    index As Integer _
) As String
'用途
Dim instance As Methods
Dim index As Integer
Dim returnValue As String

returnValue = instance.GetType(index)
public abstract string GetType(
    int index
)
public:
virtual String^ GetType(
    int index
) abstract
abstract GetType : 
        index:int -> string 
public abstract function GetType(
    index : int
) : String

Parameters

  • index
    Type: System.Int32
    [in] An index into the list of method signatures.

Return Value

Type: System.String
The return type of the specified method signature, or nulla null reference (Nothing in Visual Basic).

Remarks

In Visual C#/Visual C++, the return type is always the same. However, other languages may allow for different return types.

.NET Framework Security

See Also

Reference

Methods Class

Methods Members

GetType Overload

Microsoft.VisualStudio.Package Namespace