次の方法で共有


IVsSimpleObjectList2 Interface

Definition

A simplified version of the IVsObjectList2 interface.

public interface class IVsSimpleObjectList2
public interface class IVsSimpleObjectList2
__interface IVsSimpleObjectList2
[System.Runtime.InteropServices.Guid("A0C6D693-8226-4CA6-AB03-557AA5A33F75")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsSimpleObjectList2
[<System.Runtime.InteropServices.Guid("A0C6D693-8226-4CA6-AB03-557AA5A33F75")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsSimpleObjectList2 = interface
Public Interface IVsSimpleObjectList2
Attributes

Remarks

This interface is an extension of IVsLiteTreeList and provides additional methods that are pertinent to symbols in the project. This version of the IVsObjectList2 interface should be implemented in managed code.

Notes to Implementers

This interface should be implemented in managed code to avoid potential memory leaks when returning text from the GetTextWithOwnership(UInt32, VSTREETEXTOPTIONS, String) method, ToolTip text from the GetTipTextWithOwnership(UInt32, VSTREETOOLTIPTYPE, String) method, and a source context from the GetSourceContextWithOwnership(UInt32, String, UInt32) methods. The IVsLiteTreeList and IVsSimpleLibrary2 interfaces must also be implemented with the IVsSimpleObjectList2 interface.

Notes to Callers

This interface is returned by a call to the GetList2(UInt32, UInt32, VSOBSEARCHCRITERIA2[], IVsSimpleObjectList2) method in the IVsSimpleLibrary2 interface.

Methods

CanDelete(UInt32, Int32)

Returns a flag indicating if the given list item can be deleted.

CanGoToSource(UInt32, VSOBJGOTOSRCTYPE, Int32)

Returns a flag indicating if navigation to the given list item's source is supported.

CanRename(UInt32, String, Int32)

Returns a flag indicating if the given list item can be renamed.

CountSourceItems(UInt32, IVsHierarchy, UInt32, UInt32)

Returns the hierarchy and the number of ItemIDs corresponding to source files for the given list item.

DoDelete(UInt32, UInt32)

Asks the given list item to do the delete operation.

DoDragDrop(UInt32, IDataObject, UInt32, UInt32)

Asks the given list item to handle a drag-and-drop operation.

DoRename(UInt32, String, UInt32)

Asks the given list item to do the rename operation.

EnumClipboardFormats(UInt32, UInt32, UInt32, VSOBJCLIPFORMAT[], UInt32[])

Asks the given list item to enumerate its supported clipboard formats.

FillDescription2(UInt32, UInt32, IVsObjectBrowserDescription3)

Asks the list item to provide description text to be used in the object browser.

GetBrowseObject(UInt32, Object)

Returns a pointer to the property browse IDispatch for the given list item.

GetCapabilities2(UInt32)

Returns an object list's capabilities.

GetCategoryField2(UInt32, Int32, UInt32)

Returns the value for the specified category for the given list item.

GetClipboardFormat(UInt32, UInt32, FORMATETC[], STGMEDIUM[])

Asks the given list item to renders a specific clipboard format that it supports.

GetContextMenu(UInt32, Guid, Int32, IOleCommandTarget)

Allows the list to provide a different context menu and IOleCommandTarget for the given list item.

GetDisplayData(UInt32, VSTREEDISPLAYDATA[])

Retrieves data to draw the requested tree list item.

GetExpandable3(UInt32, UInt32, Int32)

Returns a flag indicating whether the given list item is expandable.

GetExtendedClipboardVariant(UInt32, UInt32, VSOBJCLIPFORMAT[], Object)

Asks the given list item to renders a specific clipboard format as a variant.

GetFlags(UInt32)

Returns the attributes of the current tree list.

GetItemCount(UInt32)

Returns the number of items in the current tree list.

GetList2(UInt32, UInt32, UInt32, VSOBSEARCHCRITERIA2[], IVsSimpleObjectList2)

Returns a child IVsSimpleObjectList2 for the specified category.

GetMultipleSourceItems(UInt32, UInt32, UInt32, VSITEMSELECTION[])

Returns the ItemID corresponding to source files for the given list item if more than one.

GetNavInfo(UInt32, IVsNavInfo)

Reserved for future use.

GetNavInfoNode(UInt32, IVsNavInfoNode)

Reserved for future use.

GetProperty(UInt32, Int32, Object)

Returns the specified property for the specified list item.

GetSourceContextWithOwnership(UInt32, String, UInt32)

Returns a source filename and line number for the given list item.

GetTextWithOwnership(UInt32, VSTREETEXTOPTIONS, String)

Returns the text representations for the requested tree list item.

GetTipTextWithOwnership(UInt32, VSTREETOOLTIPTYPE, String)

Returns the tool tip text for the requested tree list item.

GetUserContext(UInt32, Object)

Returns the user context object for the given list item.

GoToSource(UInt32, VSOBJGOTOSRCTYPE)

Navigates to the source for the given list item.

LocateNavInfoNode(IVsNavInfoNode, UInt32)

Reserved for future use.

OnClose(VSTREECLOSEACTIONS[])

Notifies the current tree list that it is being closed.

QueryDragDrop(UInt32, IDataObject, UInt32, UInt32)

Returns a flag indicating whether the given list item supports a drag-and-drop operation.

ShowHelp(UInt32)

Allows the list to display help for the given list item.

UpdateCounter(UInt32)

Returns the current change counter for the tree list, and is used to indicate that the list contents have changed.

Applies to