Delen via


ContentLinkProviderCollection Class

Definition

Represents a collection of ContentLinkProvider objects that can be individually accessed by index.

public ref class ContentLinkProviderCollection sealed : IIterable<ContentLinkProvider ^>, IVector<ContentLinkProvider ^>
/// [Windows.Foundation.Metadata.Activatable(393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ContentLinkProviderCollection final : IIterable<ContentLinkProvider>, IVector<ContentLinkProvider>
[Windows.Foundation.Metadata.Activatable(393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ContentLinkProviderCollection : IEnumerable<ContentLinkProvider>, IList<ContentLinkProvider>
Public NotInheritable Class ContentLinkProviderCollection
Implements IEnumerable(Of ContentLinkProvider), IList(Of ContentLinkProvider)
Inheritance
Object Platform::Object IInspectable ContentLinkProviderCollection
Attributes
Implements

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.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.

Constructors

ContentLinkProviderCollection()

Initializes a new instance of the ContentLinkProviderCollection class.

Properties

Size

Gets the size (count) of the collection.

Methods

Append(ContentLinkProvider)

Adds a new item to the collection.

Clear()

Removes all items from the collection.

First()

Returns an iterator for the items in the collection.

GetAt(UInt32)

Returns the item located at the specified index.

GetMany(UInt32, ContentLinkProvider[])

Retrieves multiple elements in a single pass through the iterator.

GetView()

Gets an immutable view into the collection.

IndexOf(ContentLinkProvider, UInt32)

Retrieves the index of the specified item.

InsertAt(UInt32, ContentLinkProvider)

Inserts the specified item at the specified index.

RemoveAt(UInt32)

Removes the item at the specified index.

RemoveAtEnd()

Removes the last item in the collection.

ReplaceAll(ContentLinkProvider[])

Initially clears the collection, then inserts the provided array as new items.

SetAt(UInt32, ContentLinkProvider)

Sets the value at the specified index to the ContentLinkProvider value specified.

Applies to