GeneratorPositionHelper 类

定义

提供用于评估和创建 GeneratorPosition 结构值的实用工具方法。 C# 和 Microsoft Visual Basic 代码应改用 GeneratorPosition 的成员。

public ref class GeneratorPositionHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GeneratorPositionHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GeneratorPositionHelper
Public NotInheritable Class GeneratorPositionHelper
继承
Object Platform::Object IInspectable GeneratorPositionHelper
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

方法

FromIndexAndOffset(Int32, Int32)

使用为索引和偏移量提供的值创建 GeneratorPosition 值。 C# 和 Microsoft Visual Basic 代码应改用 GeneratorPosition (Int32,Int32)

适用于