Platform::Guid value class

Represents a GUID type in the Windows Runtime type system.

public value struct Guid

Guid has the Equals(), GetHashCode(), and ToString() methods derived from the Platform::Object Class, and the GetTypeCode() method derived from the Platform::Type Class. Guid also has the following members.

Member

Description

Guid

Initializes a new instance of the Guid struct.

operator==

Equals operator.

operator!=

Not equals operator.

operator()

Converts a Guid to a GUID.

For an example of how to generate a new Platform::Guid using the Windows function CoCreateGuid, see WinRT component: How to generate a GUID?

Minimum supported client: Windows 8

Minimum supported server: Windows Server 2012

Namespace: Platform

Metadata: platform.winmd

Show:
© 2014 Microsoft