다음을 통해 공유


EntityCollectionChanges<TEntity,TEntityChanges> Constructor

Definition

Initializes a new instance of the EntityCollectionChanges<TEntity,TEntityChanges> class.

public EntityCollectionChanges (bool hasChanged, System.Collections.Generic.IReadOnlyCollection<TEntity> added, System.Collections.Generic.IReadOnlyCollection<TEntity> removed, System.Collections.Generic.IReadOnlyCollection<TEntityChanges> changed);
new Microsoft.VisualStudio.ProjectSystem.Query.EntityCollectionChanges<'Entity, 'EntityChanges (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity and 'EntityChanges :> Microsoft.VisualStudio.ProjectSystem.Query.QueryEntityChangesBase<'Entity>)> : bool * System.Collections.Generic.IReadOnlyCollection<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> * System.Collections.Generic.IReadOnlyCollection<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> * System.Collections.Generic.IReadOnlyCollection<'EntityChanges (requires 'EntityChanges :> Microsoft.VisualStudio.ProjectSystem.Query.QueryEntityChangesBase<'Entity>)> -> Microsoft.VisualStudio.ProjectSystem.Query.EntityCollectionChanges<'Entity, 'EntityChanges (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity and 'EntityChanges :> Microsoft.VisualStudio.ProjectSystem.Query.QueryEntityChangesBase<'Entity>)>
Public Sub New (hasChanged As Boolean, added As IReadOnlyCollection(Of TEntity), removed As IReadOnlyCollection(Of TEntity), changed As IReadOnlyCollection(Of TEntityChanges))

Parameters

hasChanged
Boolean

A boolean representing the entity collection has changed.

added
IReadOnlyCollection<TEntity>

A collection of added entities.

removed
IReadOnlyCollection<TEntity>

A collection of removed entities.

changed
IReadOnlyCollection<TEntityChanges>

A collection of changed entities.

Applies to