[]
        
(Showing Draft Content)

C1.DataCollection.NotifyCollectionChangedAsyncEventArgs.Create

Create Method

Create(NotifyCollectionChangedAction, CancellationToken)

Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a System.Collections.Specialized.NotifyCollectionChangedAction.Reset change.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This must be set to Reset.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, IList, CancellationToken)

Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a multi-item change.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, IList changedItems, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can be set to Reset, Add, or Remove.

IList changedItems

The items that are affected by the change.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, object?, CancellationToken)

Initializes a new instance of the NotifyCollectionChangedAsyncEventArgs class.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, object? changedItem, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can be set to Reset, Add, or Remove.

object changedItem

The item that is affected by the change.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, IList, IList, CancellationToken)

Initializes a new instance of the NotifyCollectionChangedAsyncEventArgs class.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, IList newItems, IList oldItems, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can only be set to Replace.

IList newItems

The new items that are replacing the original items.

IList oldItems

The original items that are replaced.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, IList, int, CancellationToken)

Initializes a new instance of the NotifyCollectionChangedAsyncEventArgs class.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, IList changedItems, int startingIndex, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can be set to Reset, Add, or Remove.

IList changedItems

The items affected by the change.

int startingIndex

The index where the change occurred.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, object?, int, CancellationToken)

Initializes a new instance of the NotifyCollectionChangedAsyncEventArgs class.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, object? changedItem, int index, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can be set to Reset, Add, or Remove.

object changedItem

The item that is affected by the change.

int index

The index where the change occurred.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, object?, object?, CancellationToken)

Initializes a new instance of the NotifyCollectionChangedAsyncEventArgs class.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, object? newItem, object? oldItem, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can only be set to Replace.

object newItem

The new item that is replacing the original item.

object oldItem

The original item that is replaced.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, IList, IList, int, CancellationToken)

Initializes a new instance of the NotifyCollectionChangedAsyncEventArgs class.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can only be set to Replace.

IList newItems

The new items that are replacing the original items.

IList oldItems

The original items that are replaced.

int startingIndex

The index of the first item of the items that are being replaced.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, IList, int, int, CancellationToken)

Initializes a new instance of the NotifyCollectionChangedAsyncEventArgs class.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can only be set to Move.

IList changedItems

The items affected by the change.

int index

The new index for the changed items.

int oldIndex

The old index for the changed items.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, object?, int, int, CancellationToken)

Initializes a new instance of the NotifyCollectionChangedAsyncEventArgs class.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, object? changedItem, int index, int oldIndex, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can only be set to Move.

object changedItem

The item affected by the change.

int index

The new index for the changed item.

int oldIndex

The old index for the changed item.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter

Create(NotifyCollectionChangedAction, object?, object?, int, CancellationToken)

Initializes a new instance of the NotifyCollectionChangedAsyncEventArgs class.

Declaration
public static NotifyCollectionChangedDeferralsAwaiter Create(NotifyCollectionChangedAction action, object? newItem, object? oldItem, int index, CancellationToken cancellationToken)
Parameters
Type Name Description
NotifyCollectionChangedAction action

The action that caused the event. This can be set to Replace.

object newItem

The new item that is replacing the original item.

object oldItem

The original item that is replaced.

int index

The index of the item being replaced.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
NotifyCollectionChangedDeferralsAwaiter