Partager via


DataCollection.AddRange Méthode (IEnumerable)

S'applique à: CRM 2015 on-prem, CRM Online

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

Espace de noms: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)

Syntaxe

'Déclaration
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification:="Allows AddRange to be used for multiple types of enumerable items")> _
Public Sub AddRange ( _
    items As IEnumerable(Of KeyValuePair(Of TKey, TValue)) _
)
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification="Allows AddRange to be used for multiple types of enumerable items")] 
public void AddRange (
    IEnumerable<KeyValuePair<TKey,TValue>> items
)

Paramètres

  • items
    Type: IEnumerable<KeyValuePair<TKey, TValue>>. The collection whose elements should be added to the end of the DataCollection. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.

Cohérence de thread

Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.

Plateformes

Plateformes de développement

Windows Vista, Windows Server 2003 et

Plateformes cibles

Windows Vista,Windows XP

Voir aussi

Référence

Classe générique DataCollection
Membres DataCollection
Espace de noms Microsoft.Xrm.Sdk

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.