共用方式為


GuidHelper 類別

定義

類別,包含使用 Guid 類型的靜態協助程式方法。

public ref class GuidHelper abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GuidHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class GuidHelper
Public Class GuidHelper
繼承
Object Platform::Object IInspectable GuidHelper
屬性

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

屬性

Empty

取得空的零 Guid

方法

CreateNewGuid()

建立新的唯一 Guid

Equals(Guid, Guid)

判斷某個 guid 是否與另一個 guid 相同。

適用於