ExpansionFunction::GetFunctionType Method (UInt32)

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int GetFunctionType(
	[OutAttribute] unsigned int% pFuncType
)

Parameters

pFuncType
Type: System::UInt32

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

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

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.

Return to top
Show: