DataCollection Members

Represents a collection of keys and values.

The following tables list the members exposed by the DataCollection type.

Public Properties

  Name Description
public property Count Gets the number of elements in the collection.
public property IsReadOnly Gets a value indicating whether the DataCollection is read-only.
public property Item Gets or sets the value associated with the specified key.
public property Keys Gets a collection containing the keys in the DataCollection.
public property Values Gets a collection containing the values in the DataCollection.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Add Overloaded. Adds the specified key and value to the dictionary.
public method AddRange Overloaded. Adds the elements of the specified collection to the end of the DataCollection.
public method Clear Removes all items from the DataCollection.
public method Contains Overloaded. Determines whether the DataCollection contains a specific value.
public method ContainsKey Determines whether the DataCollection contains a specific key value.
public method CopyTo  
public method Equals  (inherited from Object)
public method GetEnumerator Returns an enumerator that iterates through a collection.
public method GetHashCode  (inherited from Object)
public method GetType  (inherited from Object)
public method Remove Overloaded. Removes the first occurrence of a specific object from the DataCollection.
public method ToString  (inherited from Object)
public method TryGetValue Gets the value associated with the specified key.

Top

Protected Methods

  Name Description
protected method Finalize  (inherited from Object)
protected method MemberwiseClone  (inherited from Object)

Top

Explicit Interface Implementations

  Name Description
  GetEnumerator Returns an enumerator that iterates through the collection.

Top

See Also

Reference

DataCollection Generic Class
Microsoft.Xrm.Sdk Namespace

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.