EntityReferenceCollection Class
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Contains a collection of entity references.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Inheritance Hierarchy
System.Object
System.Collections.ObjectModel.Collection<T>
Microsoft.Xrm.Sdk.DataCollection<T>
Microsoft.Xrm.Sdk.EntityReferenceCollection
Syntax
[CollectionDataContractAttribute(Name = "EntityReferenceCollection",
Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class EntityReferenceCollection : DataCollection<EntityReference>
<CollectionDataContractAttribute(Name := "EntityReferenceCollection",
Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
Public NotInheritable Class EntityReferenceCollection
Inherits DataCollection(Of EntityReference)
Constructors
Name | Description | |
---|---|---|
EntityReferenceCollection() | Initializes a new instance of the EntityReferenceCollection class. |
|
EntityReferenceCollection(IList<EntityReference>) | Initializes a new instance of the EntityReferenceCollection class setting the list of entity references. |
Properties
Name | Description | |
---|---|---|
Count | (Inherited from Collection<T>.) |
|
Item[Int32] | (Inherited from Collection<T>.) |
Methods
Name | Description | |
---|---|---|
Add(T) | (Inherited from Collection<T>.) |
|
AddRange(T[]) | Adds the elements of the specified collection to the end of the DataCollection<T>.(Inherited from DataCollection<T>.) |
|
AddRange(IEnumerable<T>) | Adds the elements of the specified collection to the end of the DataCollection.(Inherited from DataCollection<T>.) |
|
Clear() | (Inherited from Collection<T>.) |
|
Contains(T) | (Inherited from Collection<T>.) |
|
CopyTo(T[], Int32) | (Inherited from Collection<T>.) |
|
Equals(Object) | (Inherited from Object.) |
|
GetEnumerator() | (Inherited from Collection<T>.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
IndexOf(T) | (Inherited from Collection<T>.) |
|
Insert(Int32, T) | (Inherited from Collection<T>.) |
|
Remove(T) | (Inherited from Collection<T>.) |
|
RemoveAt(Int32) | (Inherited from Collection<T>.) |
|
ToArray() | Copies the elements of the DataCollection<T> to a new array.(Inherited from DataCollection<T>.) |
|
ToString() | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICollection.CopyTo(Array, Int32) | (Inherited from Collection<T>.) |
|
IEnumerable.GetEnumerator() | (Inherited from Collection<T>.) |
|
IList.Add(Object) | (Inherited from Collection<T>.) |
|
IList.Contains(Object) | (Inherited from Collection<T>.) |
|
IList.IndexOf(Object) | (Inherited from Collection<T>.) |
|
IList.Insert(Int32, Object) | (Inherited from Collection<T>.) |
|
IList.Remove(Object) | (Inherited from Collection<T>.) |
|
ICollection<T>.IsReadOnly | (Inherited from Collection<T>.) |
|
ICollection.IsSynchronized | (Inherited from Collection<T>.) |
|
ICollection.SyncRoot | (Inherited from Collection<T>.) |
|
IList.IsFixedSize | (Inherited from Collection<T>.) |
|
IList.IsReadOnly | (Inherited from Collection<T>.) |
|
IList.Item[Int32] | (Inherited from Collection<T>.) |
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
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright