共用方式為


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)

適用於