Dela via


ContentLinkProviderCollection.InsertAt(UInt32, ContentLinkProvider) Method

Definition

Inserts the specified item at the specified index.

public:
 virtual void InsertAt(unsigned int index, ContentLinkProvider ^ value) = IVector<ContentLinkProvider ^>::InsertAt;
void InsertAt(uint32_t const& index, ContentLinkProvider const& value);
public void InsertAt(uint index, ContentLinkProvider value);
function insertAt(index, value)
Public Sub InsertAt (index As UInteger, value As ContentLinkProvider)

Parameters

index
UInt32

unsigned int

uint32_t

The index at which to set the value.

value
ContentLinkProvider

The value to set.

Implements

M:Windows.Foundation.Collections.IVector1.InsertAt(System.UInt32,0) M:Windows.Foundation.Collections.IVector1.InsertAt(unsigned int,0) M:Windows.Foundation.Collections.IVector1.InsertAt(uint32_t,0)

Remarks

Important

This API supports content links. The Windows features that enable content links are not available in versions of Windows after Windows 10 version 1903. Content links for XAML text controls will not function in versions of Windows later than version 1903.

InsertAt expands the collection and moves all subsequent index items by one.

In contrast, SetAt replaces the item at the index, and the collection count remains the same.

Applies to