Freigeben über


ExpansionFunction.GetFunctionType Method

Gets the type of the function; that is, what type of value the function returns.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public Overridable Function GetFunctionType ( _
    <OutAttribute> ByRef pFuncType As UInteger _
) As Integer
public virtual int GetFunctionType(
    out uint pFuncType
)

Parameters

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsExpansionFunction.GetFunctionType(UInt32%)

Remarks

This method determines what is returned from the expansion function: a value or a list. If the expansion function returns a value, then the GetCurrentValue(String%, Int32%) method is called to obtain that value. If the expansion function returns a list, then the GetListText method is called to obtain a value from the list.

This method is an implementation of the GetFunctionType method on the IVsExpansionFunction interface.

The base method returns eft_Value if the expansion function returns a single value or eft_List if the expansion function returns a list of values. The base method always returns a success code of S_OK.

.NET Framework Security

See Also

Reference

ExpansionFunction Class

Microsoft.VisualStudio.Package Namespace