Share via


ContentLinkProviderCollection 类

定义

表示可通过索引单独访问的 ContentLinkProvider 对象的集合。

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)
继承
Object Platform::Object IInspectable ContentLinkProviderCollection
属性
实现

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

注解

重要

此 API 支持内容链接。 高于 Windows 10 版本 1903 的 Windows 版本中不提供启用内容链接的 Windows 功能。 在高于 1903 版本的 Windows 版本中,XAML 文本控件的内容链接将无法正常运行。

构造函数

ContentLinkProviderCollection()

初始化 ContentLinkProviderCollection 类的新实例。

属性

Size

获取集合的大小 (计数) 。

方法

Append(ContentLinkProvider)

将新项添加到集合。

Clear()

从集合中移除所有项。

First()

返回集合中项的迭代器。

GetAt(UInt32)

返回位于指定索引处的项。

GetMany(UInt32, ContentLinkProvider[])

通过迭代器在一次传递中检索多个元素。

GetView()

获取集合中的不可变视图。

IndexOf(ContentLinkProvider, UInt32)

检索指定项的索引。

InsertAt(UInt32, ContentLinkProvider)

在指定的索引处插入指定的项。

RemoveAt(UInt32)

删除指定索引处的项。

RemoveAtEnd()

删除集合中的最后一项。

ReplaceAll(ContentLinkProvider[])

首先清除集合,然后将提供的数组作为新项插入。

SetAt(UInt32, ContentLinkProvider)

将指定索引处的值设置为指定的 ContentLinkProvider 值。

适用于