MessageCollectionBase.Contains MessageCollectionBase.Contains MessageCollectionBase.Contains Method

Definition

Determines whether an object with the specified ID value exists in the message collection object.

Overloads

Contains(Int32, Int32) Contains(Int32, Int32) Contains(Int32, Int32)

Determines whether an object with the specified ID value and language ID value exists in the message collection object.

Contains(Int32, String) Contains(Int32, String) Contains(Int32, String)

Determines whether an object with the specified ID value and language exists in the message collection object.

Contains(Int32, Int32) Contains(Int32, Int32) Contains(Int32, Int32)

Determines whether an object with the specified ID value and language ID value exists in the message collection object.

public:
 bool Contains(int id, int languageId);
public bool Contains (int id, int languageId);
Public Function Contains (id As Integer, languageId As Integer) As Boolean
Parameters
id
Int32 Int32 Int32

An Int32 value that specifies the ID value of the MessageCollectionBase object.

languageId
Int32 Int32 Int32

An Int32 value that specifies the ID value of the language associated with the MessageCollectionBase object.

Returns

A Boolean value that specifies whether the object with the specified ID value exists in the MessageCollectionBase object.

If True, the MessageCollectionBase contains the specified object.

If False, the MessageCollectionBase does not contain the specified object.

Examples

Using Collections

Contains(Int32, String) Contains(Int32, String) Contains(Int32, String)

Determines whether an object with the specified ID value and language exists in the message collection object.

public:
 bool Contains(int id, System::String ^ language);
public bool Contains (int id, string language);
Public Function Contains (id As Integer, language As String) As Boolean
Parameters
id
Int32 Int32 Int32

An Int32 value that specifies the ID value of the MessageCollectionBase object.

language
String String String

A String value that specifies the language associated with the MessageCollectionBase object.

Returns

A Boolean value that specifies whether the object with the ID value and language exists in the MessageCollectionBase object.

If True, the MessageCollectionBase contains the specified object.

If False, the MessageCollectionBase does not contain the specified object.

Examples

Using Collections

Applies to