RemoteCollectionChanges.Replace Method

Definition

Overloads

Replace(IList<MessagePackFragment>, IList<MessagePackFragment>)

Constructs an instance of RemoteCollectionChanges for a Replace event raised by a non-indexed collection.

Replace(Int32, Int32, IList<MessagePackFragment>)

Constructs an instance of RemoteCollectionChanges for a Replace event raised by an indexed collection.

Replace(IList<MessagePackFragment>, IList<MessagePackFragment>)

Constructs an instance of RemoteCollectionChanges for a Replace event raised by a non-indexed collection.

public static Microsoft.VisualStudio.RpcContracts.RemoteUI.RemoteCollectionChanges Replace (System.Collections.Generic.IList<Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment> oldItems, System.Collections.Generic.IList<Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment> newItems);
static member Replace : System.Collections.Generic.IList<Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment> * System.Collections.Generic.IList<Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment> -> Microsoft.VisualStudio.RpcContracts.RemoteUI.RemoteCollectionChanges
Public Shared Function Replace (oldItems As IList(Of MessagePackFragment), newItems As IList(Of MessagePackFragment)) As RemoteCollectionChanges

Parameters

oldItems
IList<MessagePackFragment>

The list of existing items affected by the change.

newItems
IList<MessagePackFragment>

The list of new items involved in the change.

Returns

The RemoteCollectionChanges value.

Applies to

Replace(Int32, Int32, IList<MessagePackFragment>)

Constructs an instance of RemoteCollectionChanges for a Replace event raised by an indexed collection.

public static Microsoft.VisualStudio.RpcContracts.RemoteUI.RemoteCollectionChanges Replace (int startingIndex, int replacedItemsCount, System.Collections.Generic.IList<Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment> newItems);
static member Replace : int * int * System.Collections.Generic.IList<Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment> -> Microsoft.VisualStudio.RpcContracts.RemoteUI.RemoteCollectionChanges
Public Shared Function Replace (startingIndex As Integer, replacedItemsCount As Integer, newItems As IList(Of MessagePackFragment)) As RemoteCollectionChanges

Parameters

startingIndex
Int32

The zero-based index of the old location at which the change occurred.

replacedItemsCount
Int32

The number of existing items affected by the change.

newItems
IList<MessagePackFragment>

The list of new items involved in the change.

Returns

The RemoteCollectionChanges value.

Applies to