IVsTaskItem3.GetEnumValue 方法

将列字段和值索引,返回此任务和列的索引值。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
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
)

参数

  • iField
    类型:System.Int32
    [in] 包含列字段的整数值。
  • pvarValue
    类型:System.Object%
    [out] 一个指向类型变量的值的指针。
  • pbstrAccessibilityName
    类型:System.String%
    [out] 对包含辅助功能名称的字符串的指针。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

pbstrAccessibilityName 是描述性文本显示此值的可访问性。如果 *ptvtType! = TVT_IMAGE,它可以保留为空白;在这种情况下,将使用该值的文本。

COM 签名

从 vsshell80.idl:

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

.NET Framework 安全性

请参见

参考

IVsTaskItem3 接口

Microsoft.VisualStudio.Shell.Interop 命名空间