MessageCollectionBase.Contains Method (Int32, String)


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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public bool Contains(
	int id,
	string language


Type: System.Int32

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

Type: System.String

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

Return Value

Type: System.Boolean

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.

Return to top