IVsTaskItem3::GetEnumValue Method (Int32, Int32, Object^, String^)

 

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)

int GetEnumValue(
	int iField,
	int iValue,
	[OutAttribute] Object^% pvarValue,
	[OutAttribute] String^% pbstrAccessibilityName
)

Parameters

iField
Type: System::Int32

[in] An integer value containing the column field.

iValue
Type: System::Int32

[in] An integer value index.

pvarValue
Type: System::Object^

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

pbstrAccessibilityName
Type: System::String^

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

Return Value

Type: System::Int32

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

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.

From vsshell80.idl:

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