Share via


DataExplorerConnectionManager.FindConnection Method (String)

Locates a DataExplorerConnection object instance with a specified display name.

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

Syntax

'Declaration
Public MustOverride Function FindConnection ( _
    connectionName As String _
) As DataExplorerConnection
public abstract DataExplorerConnection FindConnection(
    string connectionName
)
public:
virtual DataExplorerConnection^ FindConnection(
    String^ connectionName
) abstract
abstract FindConnection : 
        connectionName:string -> DataExplorerConnection
public abstract function FindConnection(
    connectionName : String
) : DataExplorerConnection

Parameters

  • connectionName
    Type: System.String

    The display name of an existing connection.

Return Value

Type: Microsoft.VisualStudio.Data.DataExplorerConnection
Returns a DataExplorerConnection object instance representing the specified connection, or returns nulla null reference (Nothing in Visual Basic) if no such connection could be found.

Exceptions

Exception Condition
ArgumentNullException

The connectionName parameter is null.

.NET Framework Security

See Also

Reference

DataExplorerConnectionManager Class

FindConnection Overload

Microsoft.VisualStudio.Data Namespace