Partager via


IVsDataObjectCollection Interface

Represents a collection of data objects that are selected from an object store.

Namespace:  Microsoft.VisualStudio.Data.Services
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Public Interface IVsDataObjectCollection _
    Inherits IList(Of IVsDataObject), ICollection(Of IVsDataObject),  _
    IEnumerable(Of IVsDataObject), IEnumerable
public interface IVsDataObjectCollection : IList<IVsDataObject>, 
    ICollection<IVsDataObject>, IEnumerable<IVsDataObject>, IEnumerable
public interface class IVsDataObjectCollection : IList<IVsDataObject^>, 
    ICollection<IVsDataObject^>, IEnumerable<IVsDataObject^>, IEnumerable
type IVsDataObjectCollection =  
    interface 
        interface IList<IVsDataObject>
        interface ICollection<IVsDataObject>
        interface IEnumerable<IVsDataObject>
        interface IEnumerable 
    end
public interface IVsDataObjectCollection extends IList<IVsDataObject>, ICollection<IVsDataObject>, IEnumerable<IVsDataObject>, IEnumerable

The IVsDataObjectCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the ICollection<T>. (Inherited from ICollection<IVsDataObject>.)
Public property IsReadOnly Gets a value indicating whether the ICollection<T> is read-only. (Inherited from ICollection<IVsDataObject>.)
Public property Item[Int32] Gets or sets the element at the specified index. (Inherited from IList<IVsDataObject>.)
Public property Item[array<Object[]] Gets from the collection, the data object that matches the specified identifier.
Public property Item[String] Gets from the collection the data object that matches the specified identifier.

Top

Methods

  Name Description
Public method Add Adds an item to the ICollection<T>. (Inherited from ICollection<IVsDataObject>.)
Public method Clear Removes all items from the ICollection<T>. (Inherited from ICollection<IVsDataObject>.)
Public method Contains(array<Object[]) Indicates whether the collection of data objects contains a data object corresponding to the specified identifier.
Public method Contains(String) Indicates whether the collection of data objects contains a data object corresponding to the specified identifier.
Public method Contains(T) Determines whether the ICollection<T> contains a specific value. (Inherited from ICollection<IVsDataObject>.)
Public method CopyTo Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. (Inherited from ICollection<IVsDataObject>.)
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<IVsDataObject>.)
Public method IndexOf(array<Object[]) Returns the index of the data object in the collection that matches the specified identifier.
Public method IndexOf(String) Returns the index of the data object in the collection that matches the specified identifier.
Public method IndexOf(T) Determines the index of a specific item in the IList<T>. (Inherited from IList<IVsDataObject>.)
Public method Insert Inserts an item to the IList<T> at the specified index. (Inherited from IList<IVsDataObject>.)
Public method Remove Removes the first occurrence of a specific object from the ICollection<T>. (Inherited from ICollection<IVsDataObject>.)
Public method RemoveAt Removes the IList<T> item at the specified index. (Inherited from IList<IVsDataObject>.)

Top

Remarks

This interface is implemented as a built-in DDEX service.

See Also

Reference

Microsoft.VisualStudio.Data.Services Namespace