次の方法で共有


IVsDataExplorerConnectionManager Interface

Provides the ability to perform common tasks with data connections in Server Explorer, such as adding, removing, or finding a connection, among others.

This API is not CLS-compliant. 

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

Syntax

'宣言
<GuidAttribute("8B6159D9-A634-4549-9EAC-8642744F1042")> _
<CLSCompliantAttribute(False)> _
Public Interface IVsDataExplorerConnectionManager
[GuidAttribute("8B6159D9-A634-4549-9EAC-8642744F1042")]
[CLSCompliantAttribute(false)]
public interface IVsDataExplorerConnectionManager
[GuidAttribute(L"8B6159D9-A634-4549-9EAC-8642744F1042")]
[CLSCompliantAttribute(false)]
public interface class IVsDataExplorerConnectionManager
[<GuidAttribute("8B6159D9-A634-4549-9EAC-8642744F1042")>]
[<CLSCompliantAttribute(false)>]
type IVsDataExplorerConnectionManager =  interface end
public interface IVsDataExplorerConnectionManager

The IVsDataExplorerConnectionManager type exposes the following members.

Properties

  Name Description
Public property Connections Gets a collection of key/value pairs containing all existing data connections.

Top

Methods

  Name Description
Public method AddConnection Adds a new data connection with the specified properties.
Public method FindConnection Searches for an existing data connection that matches the specified properties.
Public method PromptAndAddConnection Prompts the user with the connection dialog box to add a new connection in Server Explorer.
Public method RemoveConnection Removes an existing data connection from Server Explorer.
Public method SelectConnection Selects the specified data connection in Server Explorer.

Top

Remarks

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

See Also

Reference

Microsoft.VisualStudio.Data.Services Namespace