DataCollection<TKey, TValue> Class
Applies To: Dynamics CRM 2015
Represents a collection of keys and values.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Sdk.DataCollection<TKey, TValue>
Microsoft.Crm.Sdk.Messages.InputArgument
Microsoft.Xrm.Sdk.AttributeCollection
Microsoft.Xrm.Sdk.Client.CrossRealmIssuerEndpointCollection
Microsoft.Xrm.Sdk.Discovery.EndpointCollection
Microsoft.Xrm.Sdk.EntityAttributeCollection
Microsoft.Xrm.Sdk.EntityImageCollection
Microsoft.Xrm.Sdk.ErrorDetailCollection
Microsoft.Xrm.Sdk.FormattedValueCollection
Microsoft.Xrm.Sdk.KeyAttributeCollection
Microsoft.Xrm.Sdk.Metadata.Query.DeletedMetadataCollection
Microsoft.Xrm.Sdk.Organization.EndpointCollection
Microsoft.Xrm.Sdk.ParameterCollection
Microsoft.Xrm.Sdk.RelatedEntityCollection
Microsoft.Xrm.Sdk.RelationshipQueryCollection
Syntax
[SerializableAttribute]
public abstract class DataCollection<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>,
IEnumerable
generic<typename TKey, typename TValue>
[SerializableAttribute]
public ref class DataCollection abstract : IEnumerable<KeyValuePair<TKey, TValue>>,
IEnumerable
[<AbstractClass>]
[<SerializableAttribute>]
type DataCollection<'TKey, 'TValue> =
class
interface IEnumerable<KeyValuePair<'TKey, 'TValue>>
interface IEnumerable
end
<SerializableAttribute>
Public MustInherit Class DataCollection(Of TKey, TValue)
Implements IEnumerable(Of KeyValuePair(Of TKey, TValue)), IEnumerable
Type Parameters
- TKey
The type of the keys in the dictionary.
- TValue
The type of the values in the dictionary.
Constructors
Name | Description | |
---|---|---|
DataCollection<TKey, TValue>() | Initializes a new instance of the DataCollection<TKey, TValue> class. |
Properties
Name | Description | |
---|---|---|
Count | Gets the number of elements in the collection. |
|
IsReadOnly | Gets a value indicating whether the DataCollection<TKey, TValue> is read-only. |
|
Item[TKey] | Gets or sets the value associated with the specified key. |
|
Keys | Gets a collection containing the keys in the DataCollection<TKey, TValue>. |
|
Values | Gets a collection containing the values in the DataCollection<TKey, TValue>. |
Methods
Name | Description | |
---|---|---|
Add(TKey, TValue) | Adds the specified key and value to the dictionary. |
|
Add(KeyValuePair<TKey, TValue>) | Adds the specified key and value to the dictionary. |
|
AddRange(IEnumerable<KeyValuePair<TKey, TValue>>) | Adds the elements of the specified collection to the end of the DataCollection<TKey, TValue>. |
|
AddRange(KeyValuePair<TKey, TValue>[]) | Adds the elements of the specified collection to the end of the DataCollection<TKey, TValue>. |
|
Clear() | Removes all items from the DataCollection<TKey, TValue>. |
|
Contains(TKey) | Determines whether the DataCollection<TKey, TValue> contains a specific value. |
|
Contains(KeyValuePair<TKey, TValue>) | Determines whether the DataCollection<TKey, TValue> contains a specific value. |
|
ContainsKey(TKey) | Determines whether the DataCollection<TKey, TValue> contains a specific key value. |
|
CopyTo(KeyValuePair<TKey, TValue>[], Int32) | ||
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetEnumerator() | Returns an enumerator that iterates through a collection. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
Remove(TKey) | Removes the first occurrence of a specific object from the DataCollection<TKey, TValue>. |
|
Remove(KeyValuePair<TKey, TValue>) | Removes the first occurrence of a specific object from the DataCollection<TKey, TValue>. |
|
ToString() | (Inherited from Object.) |
|
TryGetValue(TKey, TValue) | Gets the value associated with the specified key. |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable.GetEnumerator() | Returns an enumerator that iterates through the collection. |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Return to top
© 2016 Microsoft. All rights reserved. Copyright