SortEntryVector 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供对查询结果的排序条件作为 SortEntry 对象的集合的访问。
public ref class SortEntryVector sealed : IIterable<SortEntry>, IVector<SortEntry>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class SortEntryVector final : IIterable<SortEntry>, IVector<SortEntry>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class SortEntryVector : IEnumerable<SortEntry>, IList<SortEntry>
Public NotInheritable Class SortEntryVector
Implements IEnumerable(Of SortEntry), IList(Of SortEntry)
- 继承
- 属性
- 实现
Windows 要求
| 设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
注解
注意
尽管它不是使用 marshalling_behavior(agile)进行属性化,但此类可以被视为敏捷类。 有关详细信息,请参阅 线程处理和封送处理 (C++/CX) 。
可以使用 QueryOptions.SortOrder 检索此对象。
集合成员列表
对于 JavaScript,SortEntryVector 具有成员列表中显示的成员。 此外,SortEntryVector 支持 length 属性、 Array.prototype 的成员以及使用索引来访问项。
枚举 C# 或 Microsoft Visual Basic 中的集合
SortEntryVector 是可枚举的,因此可以使用特定于语言的语法(如 C# 中的 foreach )枚举集合中的项。 编译器为你执行类型强制转换,你无需显式转换为 IEnumerable<SortEntry> 。 如果需要显式强制转换(例如,如果要调用 GetEnumerator),请使用 SortEntry 约束强制转换为 IEnumerable<T>。
属性
| Size |
获取集合中排序条目的数目。 |
方法
| Append(SortEntry) |
将排序项追加到集合的末尾。 |
| Clear() |
从集合中删除所有排序条目。 |
| First() |
检索循环访问集合中的排序条目的迭代器。 |
| GetAt(UInt32) |
检索集合中指定索引处的排序项。 |
| GetMany(UInt32, SortEntry[]) |
检索从集合中的指定索引处开始的排序条目。 |
| GetView() |
检索排序项集合的不可变视图。 |
| IndexOf(SortEntry, UInt32) |
检索集合中指定排序项的索引。 |
| InsertAt(UInt32, SortEntry) |
将排序项插入到集合中的指定索引处。 |
| RemoveAt(UInt32) |
删除集合中指定索引处的排序项。 |
| RemoveAtEnd() |
从集合中删除最后一个排序项。 |
| ReplaceAll(SortEntry[]) |
将集合中的所有排序条目替换为指定的排序条目。 |
| SetAt(UInt32, SortEntry) |
设置集合的指定索引处的排序项。 |