DataConnectionManager Class

Definition

Represents a shared set of data connection objects that are created on demand and managed by Visual Studio.

public ref class DataConnectionManager abstract : System::Collections::Generic::ICollection<Microsoft::VisualStudio::Data::DataConnection ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Data::DataConnection ^>
[System.Runtime.InteropServices.Guid("E7A0D4E0-D0E4-4afa-A8A1-DD4636073D98")]
public abstract class DataConnectionManager : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Data.DataConnection>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Data.DataConnection>
[<System.Runtime.InteropServices.Guid("E7A0D4E0-D0E4-4afa-A8A1-DD4636073D98")>]
type DataConnectionManager = class
    interface ICollection<DataConnection>
    interface seq<DataConnection>
    interface IEnumerable
Public MustInherit Class DataConnectionManager
Implements ICollection(Of DataConnection), IEnumerable(Of DataConnection)
Inheritance
DataConnectionManager
Attributes
Implements

Constructors

DataConnectionManager()

Class constructor.

Properties

Count

Retrieves a count of the number of data connections currently being managed.

Methods

CopyTo(DataConnection[], Int32)

Copies the set of currently managed data connections to an array, starting at the specified array index.

CreateDataConnection(Guid, String, Boolean)

Initializes a data connection. This method should not be called by client code.

GetDataConnection(Guid, String, Boolean)

Retrieves a data connection that is equivalent to the specified connection information.

GetDataConnection(Guid, String, Boolean, Boolean)

Retrieves a data connection that is equivalent to the specified connection information, with an indication whether the connection information is updated.

InvalidateDataConnection(Guid, String, Boolean)

Invalidates a currently managed data connection that matches the specified connection information, if any.

Explicit Interface Implementations

ICollection<DataConnection>.Add(DataConnection)
ICollection<DataConnection>.Clear()
ICollection<DataConnection>.Contains(DataConnection)
ICollection<DataConnection>.IsReadOnly
ICollection<DataConnection>.Remove(DataConnection)
IEnumerable.GetEnumerator()

Retrieves an IEnumerator object with which to iterate through the collection.

IEnumerable<DataConnection>.GetEnumerator()

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to