Freigeben über


IVsTaskItem3.GetEnumCount Method

Given a column field, returns the number of possible values this task may have for that column.

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

Syntax

'Declaration
Function GetEnumCount ( _
    iField As Integer, _
    <OutAttribute> ByRef pnValues As Integer _
) As Integer
'Usage
Dim instance As IVsTaskItem3
Dim iField As Integer
Dim pnValues As Integer
Dim returnValue As Integer

returnValue = instance.GetEnumCount(iField, _
    pnValues)
int GetEnumCount(
    int iField,
    out int pnValues
)
int GetEnumCount(
    [InAttribute] int iField, 
    [OutAttribute] int% pnValues
)
abstract GetEnumCount : 
        iField:int * 
        pnValues:int byref -> int 
function GetEnumCount(
    iField : int, 
    pnValues : int
) : int

Parameters

  • pnValues
    Type: System.Int32%
    [Out] A pointer to an integer value.

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 vsshell80.idl:

HRESULT IVsTaskItem3::GetEnumCount(
   [in] int iField, 
   [out] int* pnValues
);

.NET Framework Security

See Also

Reference

IVsTaskItem3 Interface

IVsTaskItem3 Members

Microsoft.VisualStudio.Shell.Interop Namespace