有关返回一个下拉栏 /windows 组合的信息。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function GetComboAttributes ( _
iCombo As Integer, _
<OutAttribute> ByRef pcEntries As UInteger, _
<OutAttribute> ByRef puEntryType As UInteger, _
<OutAttribute> ByRef phImageList As IntPtr _
) As Integer
int GetComboAttributes(
int iCombo,
out uint pcEntries,
out uint puEntryType,
out IntPtr phImageList
)
int GetComboAttributes(
[InAttribute] int iCombo,
[OutAttribute] unsigned int% pcEntries,
[OutAttribute] unsigned int% puEntryType,
[OutAttribute] IntPtr% phImageList
)
abstract GetComboAttributes :
iCombo:int *
pcEntries:uint32 byref *
puEntryType:uint32 byref *
phImageList:IntPtr byref -> int
function GetComboAttributes(
iCombo : int,
pcEntries : uint,
puEntryType : uint,
phImageList : IntPtr
) : int
参数
iCombo
类型:Int32[in] 下拉栏 /windows 组合。
pcEntries
类型:UInt32%[in] 计数组合在一起的项。
puEntryType
类型:UInt32%[out] 为组合指定绘制协议。 值从 DROPDOWNENTRYTYPE 枚举中采用。
phImageList
类型:IntPtr%[out] 为 HIMAGELIST 的句柄。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsDropdownBarClient::GetComboAttributes(
[in] long iCombo,
[out] ULONG *pcEntries,
[out] ULONG *puEntryType
);
,如果关联的信息不是必需的,任何一个输出参数, phImageList, puEntryType和pcEntries,可以是 nullnull 引用(在 Visual Basic 中为 Nothing) 。
备注
从 GetComboAttributes 的phImageList 不能在计算机之间封送。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。