Share via


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.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.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)

Syntax

'Declaration
Public Overridable Function GetFunctionType ( _
    <OutAttribute> ByRef pFuncType As UInteger _
) As Integer
public virtual int GetFunctionType(
    out uint pFuncType
)
public:
virtual int GetFunctionType(
    [OutAttribute] unsigned int% pFuncType
)
abstract GetFunctionType : 
        pFuncType:uint32 byref -> int  
override GetFunctionType : 
        pFuncType:uint32 byref -> int
public function GetFunctionType(
    pFuncType : uint
) : int

Parameters

  • pFuncType
    Type: UInt32%

    [out] A value from the _ExpansionFunctionType enumeration specifying the type of the expansion function.

Return Value

Type: 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