共用方式為


EntityReferenceCollection Class

Definition

Contains a collection of entity references.

public ref class EntityReferenceCollection sealed : Microsoft::Xrm::Sdk::DataCollection<Microsoft::Xrm::Sdk::EntityReference ^>
[System.Runtime.Serialization.CollectionDataContract(Name="EntityReferenceCollection", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class EntityReferenceCollection : Microsoft.Xrm.Sdk.DataCollection<Microsoft.Xrm.Sdk.EntityReference>
[<System.Runtime.Serialization.CollectionDataContract(Name="EntityReferenceCollection", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")>]
type EntityReferenceCollection = class
    inherit DataCollection<EntityReference>
Public NotInheritable Class EntityReferenceCollection
Inherits DataCollection(Of EntityReference)
Inheritance
EntityReferenceCollection
Attributes

Constructors

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.

Methods

AddRange(IEnumerable<T>)

Adds the elements of the specified collection to the end of the DataCollection.

(Inherited from DataCollection<T>)
AddRange(T[])

Adds the elements of the specified collection to the end of the DataCollection<T>.

(Inherited from DataCollection<T>)
ToArray()

Copies the elements of the DataCollection<T> to a new array.

(Inherited from DataCollection<T>)

Applies to