다음을 통해 공유


DataExplorerConnectionManager Class

Definition

Provides methods and properties that enable programmatic interaction with data connections exposed in the Server Explorer.

public ref class DataExplorerConnectionManager abstract : System::Collections::ICollection
[System.Runtime.InteropServices.Guid("D8D207DA-64EB-4b46-9740-282F5F458B22")]
public abstract class DataExplorerConnectionManager : System.Collections.ICollection
[<System.Runtime.InteropServices.Guid("D8D207DA-64EB-4b46-9740-282F5F458B22")>]
type DataExplorerConnectionManager = class
    interface ICollection
    interface IEnumerable
Public MustInherit Class DataExplorerConnectionManager
Implements ICollection
Inheritance
DataExplorerConnectionManager
Attributes
Implements

Constructors

DataExplorerConnectionManager()

Class constructor. This member supports the DDEX infrastructure and is not intended to be used directly from your code.

Properties

Count

Retrieves an integer value specifying the number of current data connections visible in the Server Explorer.

Methods

AddConnection(String, Guid, String, Boolean)

Adds a new connection to the Server Explorer window with the specified connection settings.

CopyTo(DataExplorerConnection[], Int32)

Copies all DataExplorerConnection object instances into an array, starting at a specified index.

FindConnection(Guid, String, Boolean)

Locates a DataExplorerConnection object instance with specified connection settings.

FindConnection(String)

Locates a DataExplorerConnection object instance with a specified display name.

GetConnections()

Retrieves an array containing all the current DataExplorerConnection instances.

PromptAndAddConnection()

Prompts the user for, and adds, a new DataExplorerConnection object instance.

RemoveConnection(DataExplorerConnection)

Removes an existing DataExplorerConnection object instance from the set of current connections.

SelectConnection(DataExplorerConnection)

Selects a specific data connection in the Server Explorer tree view.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

Copies the set of connections exposed in the Visual Studio Server Explorer to an array, starting at the specified array index.

ICollection.IsSynchronized

Retrieves a value that indicates whether access to the connections collection is synchronized (thread safe).

ICollection.SyncRoot

Retrieves an object that can be used to synchronize access to the connections collection.

IEnumerable.GetEnumerator()

Retrieves an enumerator that is able to iterate through the connections collection.

Applies to