Partager via


IVsDataExplorerChildNodeCollection.Contains Method (String, array<Object )

Indicates whether Server Explorer contains a connection node corresponding to the specified type name and identifiers.

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

Syntax

'Déclaration
Function Contains ( _
    typeName As String, _
    identifier As Object() _
) As Boolean
bool Contains(
    string typeName,
    Object[] identifier
)
bool Contains(
    String^ typeName, 
    array<Object^>^ identifier
)
abstract Contains : 
        typeName:string * 
        identifier:Object[] -> bool 
function Contains(
    typeName : String, 
    identifier : Object[]
) : boolean

Parameters

  • typeName
    Type: System.String
    The name of the requested data object's type.
  • identifier
    Type: array<System.Object[]
    An array of identifier parts that uniquely identify the requested data object.

Return Value

Type: System.Boolean
true if Server Explorer contains the specified connection node; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

The typeName or identifier parameter is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

IVsDataExplorerChildNodeCollection Interface

Contains Overload

Microsoft.VisualStudio.Data.Services Namespace