AttributeCollection Class
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Provides a collection of attributes for an entity.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
System.Object
Microsoft.Xrm.Sdk.DataCollection<TKey, TValue>
Microsoft.Xrm.Sdk.AttributeCollection
[KnownTypeAttribute("GetKnownParameterTypes")]
[CollectionDataContractAttribute(Name = "AttributeCollection",
Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class AttributeCollection : DataCollection<string, object>
<KnownTypeAttribute("GetKnownParameterTypes")>
<CollectionDataContractAttribute(Name := "AttributeCollection",
Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
Public NotInheritable Class AttributeCollection
Inherits DataCollection(Of String, Object)
Name | Description | |
---|---|---|
AttributeCollection() | Initializes a new instance of the AttributeCollection class. |
Name | Description | |
---|---|---|
Count | Gets the number of elements in the collection.(Inherited from DataCollection<TKey, TValue>.) |
|
IsReadOnly | Gets a value indicating whether the DataCollection<TKey, TValue> is read-only.(Inherited from DataCollection<TKey, TValue>.) |
|
Item[TKey] | Gets or sets the value associated with the specified key.(Inherited from DataCollection<TKey, TValue>.) |
|
Keys | Gets a collection containing the keys in the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.) |
|
Values | Gets a collection containing the values in the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.) |
Name | Description | |
---|---|---|
Add(TKey, TValue) | Adds the specified key and value to the dictionary.(Inherited from DataCollection<TKey, TValue>.) |
|
Add(KeyValuePair<TKey, TValue>) | Adds the specified key and value to the dictionary.(Inherited from DataCollection<TKey, TValue>.) |
|
AddRange(IEnumerable<KeyValuePair<TKey, TValue>>) | Adds the elements of the specified collection to the end of the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.) |
|
AddRange(KeyValuePair<TKey, TValue>[]) | Adds the elements of the specified collection to the end of the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.) |
|
Clear() | Removes all items from the DataCollection<TKey, TValue>. (Inherited from DataCollection<TKey, TValue>.) |
|
Contains(TKey) | Determines whether the DataCollection<TKey, TValue> contains a specific value.(Inherited from DataCollection<TKey, TValue>.) |
|
Contains(TKey) | Determines whether the DataCollection<TKey, TValue> contains a specific value.(Inherited from DataCollection<TKey, TValue>.) |
|
ContainsKey(TKey) | Determines whether the DataCollection<TKey, TValue> contains a specific key value.(Inherited from DataCollection<TKey, TValue>.) |
|
CopyTo(KeyValuePair<TKey, TValue>[], Int32) | (Inherited from DataCollection<TKey, TValue>.) |
|
Equals(Object) | (Inherited from Object.) |
|
GetEnumerator() | Returns an enumerator that iterates through a collection.(Inherited from DataCollection<TKey, TValue>.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
Remove(TKey) | Removes the first occurrence of a specific object from the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.) |
|
Remove(TKey) | Removes the first occurrence of a specific object from the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.) |
|
ToString() | (Inherited from Object.) |
|
TryGetValue(TKey, TValue) | Gets the value associated with the specified key.(Inherited from DataCollection<TKey, TValue>.) |
Name | Description | |
---|---|---|
IEnumerable.GetEnumerator() | Returns an enumerator that iterates through the collection.(Inherited from DataCollection<TKey, TValue>.) |
For each attribute in the collection there is a key/value pair. The key is the logical name of the attribute as defined in the attribute metadata.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
AttributeMetadata
Entity
Microsoft.Xrm.Sdk Namespace
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright