Share via


DataSourceManager Class

Represents the set of registered DDEX data sources.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.DataSourceManager

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

Syntax

'Declaration
<GuidAttribute("69BD65B1-1C44-49c6-B83A-FB0353334545")> _
Public MustInherit Class DataSourceManager _
    Implements ICollection(Of DataSource), IEnumerable(Of DataSource),  _
    IEnumerable
[GuidAttribute("69BD65B1-1C44-49c6-B83A-FB0353334545")]
public abstract class DataSourceManager : ICollection<DataSource>, 
    IEnumerable<DataSource>, IEnumerable
[GuidAttribute(L"69BD65B1-1C44-49c6-B83A-FB0353334545")]
public ref class DataSourceManager abstract : ICollection<DataSource^>, 
    IEnumerable<DataSource^>, IEnumerable
[<AbstractClass>]
[<GuidAttribute("69BD65B1-1C44-49c6-B83A-FB0353334545")>]
type DataSourceManager =  
    class 
        interface ICollection<DataSource>
        interface IEnumerable<DataSource>
        interface IEnumerable 
    end
public abstract class DataSourceManager implements ICollection<DataSource>, IEnumerable<DataSource>, IEnumerable

The DataSourceManager type exposes the following members.

Constructors

  Name Description
Protected method DataSourceManager Class constructor. Instantiates a new instance of the DataSourceManager class.

Top

Properties

  Name Description
Public property Count Retrieves a count of the number of registered data sources.

Top

Methods

  Name Description
Public method CopyTo Copies the set of registered data sources to an array, starting at the specified array index.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetDataSource Retrieves a data source with the specified GUID.
Public method GetDataSources Retrieves an array of all the registered data sources.
Protected method GetDataSourcesImpl For internal use only.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection<DataSource>.Add Adds a data source to the DDEX data source collection.
Explicit interface implemetationPrivate method ICollection<DataSource>.Clear Clears the DDEX data source collection.
Explicit interface implemetationPrivate method ICollection<DataSource>.Contains Tests whether the DDEX data source collection contains a specified data source.
Explicit interface implemetationPrivate method IEnumerable<DataSource>.GetEnumerator Retrieves an enumerator for enumerating the DDEX data source collection.
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Retrieves an enumerator for enumerating the DDEX data source collection.
Explicit interface implemetationPrivate property ICollection<DataSource>.IsReadOnly Tests whether the data source collection is read only.
Explicit interface implemetationPrivate method ICollection<DataSource>.Remove Removes a data source from the DDEX data source collection.

Top

Remarks

This class provides an object model around the data source registration information in the registry.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Data Namespace

DataSource

DataSourceInformation