IVsDataExplorerChildNodeCollection.Contains Method

Definition

Overloads

Contains(IVsDataObject)

Indicates whether Server Explorer contains a connection node corresponding to the specified data object.

Contains(Int32)

Indicates whether Server Explorer contains a connection node corresponding to the specified data object identifier.

Contains(String)

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

Contains(String, Object[])

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

Contains(IVsDataObject)

Indicates whether Server Explorer contains a connection node corresponding to the specified data object.

public:
 bool Contains(Microsoft::VisualStudio::Data::Services::IVsDataObject ^ obj);
public bool Contains (Microsoft.VisualStudio.Data.Services.IVsDataObject obj);
abstract member Contains : Microsoft.VisualStudio.Data.Services.IVsDataObject -> bool
Public Function Contains (obj As IVsDataObject) As Boolean

Parameters

obj
IVsDataObject

The data object representing the connection node to look for.

Returns

true if Server Explorer contains the specified connection node; otherwise, false.

Exceptions

The obj parameter is null.

Applies to

Contains(Int32)

Indicates whether Server Explorer contains a connection node corresponding to the specified data object identifier.

public:
 bool Contains(int itemId);
public bool Contains (int itemId);
abstract member Contains : int -> bool
Public Function Contains (itemId As Integer) As Boolean

Parameters

itemId
Int32

An integer value representing the ID of the data object.

Returns

true if Server Explorer contains the specified connection node; otherwise, false.

Applies to

Contains(String)

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

public:
 bool Contains(System::String ^ name);
public bool Contains (string name);
abstract member Contains : string -> bool
Public Function Contains (name As String) As Boolean

Parameters

name
String

The name of the connection node to look for.

Returns

true if Server Explorer contains the specified connection node; otherwise, false.

Applies to

Contains(String, Object[])

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

public:
 bool Contains(System::String ^ typeName, cli::array <System::Object ^> ^ identifier);
public bool Contains (string typeName, object[] identifier);
abstract member Contains : string * obj[] -> bool
Public Function Contains (typeName As String, identifier As Object()) As Boolean

Parameters

typeName
String

The name of the requested data object's type.

identifier
Object[]

An array of identifier parts that uniquely identify the requested data object.

Returns

true if Server Explorer contains the specified connection node; otherwise, false.

Exceptions

The typeName or identifier parameter is null.

Applies to