SimpleObjectCollectionBase.Contains(String) SimpleObjectCollectionBase.Contains(String) SimpleObjectCollectionBase.Contains(String) Method

Definition

Verifies whether the specified object exists in the collection.

public:
 bool Contains(System::String ^ name);
public bool Contains (string name);
Public Function Contains (name As String) As Boolean
Parameters
name
String String String

A String value that specifies the name of the object.

Returns

A Boolean value that specifies whether the specified object exists in the collection.

If True, the specified object does exist in the collection.

If False, the specified object does not exist in the collection.

Examples

Using Collections

Applies to