Compartir a través de


IVsTaskItem3.GetEnumValue Method

Given a column field and value index, returns the indexed value for this task and column.

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

Syntax

'Declaration
Function GetEnumValue ( _
    iField As Integer, _
    iValue As Integer, _
    <OutAttribute> ByRef pvarValue As Object, _
    <OutAttribute> ByRef pbstrAccessibilityName As String _
) As Integer
int GetEnumValue(
    int iField,
    int iValue,
    out Object pvarValue,
    out string pbstrAccessibilityName
)
int GetEnumValue(
    [InAttribute] int iField, 
    [InAttribute] int iValue, 
    [OutAttribute] Object^% pvarValue, 
    [OutAttribute] String^% pbstrAccessibilityName
)
abstract GetEnumValue : 
        iField:int * 
        iValue:int * 
        pvarValue:Object byref * 
        pbstrAccessibilityName:string byref -> int
function GetEnumValue(
    iField : int, 
    iValue : int, 
    pvarValue : Object, 
    pbstrAccessibilityName : String
) : int

Parameters

  • iField
    Type: Int32

    [in] An integer value containing the column field.

  • iValue
    Type: Int32

    [in] An integer value index.

  • pvarValue
    Type: Object%

    [out] A pointer to a value of type VARIANT.

  • pbstrAccessibilityName
    Type: String%

    [out] A pointer to a string containing the Accessibility Name.

Return Value

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

Remarks

pbstrAccessibilityName is the descriptive text exposed to accessibility for this value. If *ptvtType != TVT_IMAGE, it may be left blank; in that case, the text of the value itself will be used.

COM Signature

From vsshell80.idl:

HRESULT IVsTaskItem3::GetEnumValue(
   [in] int iField, 
   [in] int iValue, 
   [out] VARIANT* pvarValue,
   [out] BSTR* pbstrAccessibilityName
);

.NET Framework Security

See Also

Reference

IVsTaskItem3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace