다음을 통해 공유


IVsExpansionFunction.GetFunctionType Method

Returns the type of this expansion function (value or list of values).

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

‘선언
Function GetFunctionType ( _
    <OutAttribute> ByRef pFuncType As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsExpansionFunction
Dim pFuncType As UInteger
Dim returnValue As Integer

returnValue = instance.GetFunctionType(pFuncType)
int GetFunctionType(
    out uint pFuncType
)
int GetFunctionType(
    [OutAttribute] unsigned int% pFuncType
)
abstract GetFunctionType : 
        pFuncType:uint32 byref -> int 
function GetFunctionType(
    pFuncType : uint
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr2.idl:

HRESULT IVsExpansionFunction::GetFunctionType(
   [out]ExpansionFunctionType *pFuncType
);

An expansion function can represent either single or multiple values (possibly dynamically generated). If an expansion function represents a single value, then the GetCurrentValue method is called to retrieve that value. If the expansion function represents a list of values, then the GetListCount and GetListText methods are used to retrieve the list of values.

.NET Framework Security

See Also

Reference

IVsExpansionFunction Interface

IVsExpansionFunction Members

Microsoft.VisualStudio.TextManager.Interop Namespace