DataCollection<TKey, TValue>.Contains Method (KeyValuePair<TKey, TValue>)


Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Determines whether the DataCollection<TKey, TValue> contains a specific value.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

public bool Contains(
	KeyValuePair<TKey, TValue> key


Type: System.Collections.Generic.KeyValuePair<TKey, TValue>

Type: KeyValuePair<TKey, TValue>. The key value pair to locate in the collection.

Return Value

Type: System.Boolean

Type: Boolean
true if item is found in the DataCollection<TKey, TValue>; otherwise, false.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright