مشاركة عبر


DataCollection<T> Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists. Extends Collection.

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.Crm.Sdk.Messages.AuditPartitionDetailCollection
      Microsoft.Xrm.Sdk.AttributeMappingCollection
      Microsoft.Xrm.Sdk.AttributePrivilegeCollection
      Microsoft.Xrm.Sdk.BusinessEntityChangesCollection
      Microsoft.Xrm.Sdk.Deployment.AttributeCollection
      Microsoft.Xrm.Sdk.Deployment.ErrorDetailCollection
      Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection
      Microsoft.Xrm.Sdk.EntityReferenceCollection
      Microsoft.Xrm.Sdk.ExecuteMultipleResponseItemCollection
      Microsoft.Xrm.Sdk.LocalizedLabelCollection
      Microsoft.Xrm.Sdk.MailboxTrackingFolderMappingCollection
      Microsoft.Xrm.Sdk.Metadata.EntityMetadataCollection
      Microsoft.Xrm.Sdk.Metadata.OptionMetadataCollection
      Microsoft.Xrm.Sdk.OrganizationRequestCollection
      Microsoft.Xrm.Sdk.OrganizationResponseCollection
      Microsoft.Xrm.Sdk.QuickFindConfigurationCollection
      Microsoft.Xrm.Sdk.QuickFindResultCollection
      Microsoft.Xrm.Sdk.UserSearchFacetCollection

Syntax

[SerializableAttribute]
public class DataCollection<T> : Collection<T>
<SerializableAttribute>
Public Class DataCollection(Of T)
    Inherits Collection(Of T)

Type Parameters

  • T
    The type of elements in the list.

Properties

Name Description
System_CAPS_pubproperty Count

(Inherited from Collection<T>.)

System_CAPS_pubproperty Item[Int32]

(Inherited from Collection<T>.)

System_CAPS_protproperty Items

(Inherited from Collection<T>.)

Methods

Name Description
System_CAPS_pubmethod Add(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethod AddRange(T[])

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

System_CAPS_pubmethod AddRange(IEnumerable<T>)

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

System_CAPS_pubmethod Clear()

(Inherited from Collection<T>.)

System_CAPS_protmethod ClearItems()

(Inherited from Collection<T>.)

System_CAPS_pubmethod Contains(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethod CopyTo(T[], Int32)

(Inherited from Collection<T>.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

(Inherited from Collection<T>.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IndexOf(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethod Insert(Int32, T)

(Inherited from Collection<T>.)

System_CAPS_protmethod InsertItem(Int32, T)

(Inherited from Collection<T>.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Remove(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethod RemoveAt(Int32)

(Inherited from Collection<T>.)

System_CAPS_protmethod RemoveItem(Int32)

(Inherited from Collection<T>.)

System_CAPS_protmethod SetItem(Int32, T)

(Inherited from Collection<T>.)

System_CAPS_pubmethod ToArray()

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

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection.CopyTo(Array, Int32)

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Add(Object)

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Contains(Object)

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.IndexOf(Object)

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Insert(Int32, Object)

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Remove(Object)

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection<T>.IsReadOnly

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection.IsSynchronized

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection.SyncRoot

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IList.IsFixedSize

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IList.IsReadOnly

(Inherited from Collection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IList.Item[Int32]

(Inherited from Collection<T>.)

Remarks

For more information, see 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

Microsoft.Xrm.Sdk Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright