DataConnectionManager Class

Definition

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

C++
public ref class DataConnectionManager abstract : System::Collections::Generic::ICollection<Microsoft::VisualStudio::Data::DataConnection ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Data::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, Boolean)

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

GetDataConnection(Guid, String, Boolean)

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

InvalidateDataConnection(Guid, String, Boolean)

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

Explicit Interface Implementations

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

Product Versions
Visual Studio SDK 2017, 2019, 2022