title | ms.custom | ms.date | ms.technology | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Platform::Guid value class | Microsoft Docs |
12/30/2016 |
cpp-windows |
language-reference |
|
|
|
25c0bfb2-7f93-44d8-bdf4-ef4fbac3424a |
6 |
ghogen |
ghogen |
ghogen |
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
Initializes a new instance of a Guid struct.
Guid(
unsigned int a,
unsigned short b,
unsigned short c,
unsigned char d,
unsigned char e,
unsigned char f,
unsigned char g,
unsigned char h,
unsigned char i,
unsigned char j,
unsigned char k );
Guid(GUID m);
Guid(
unsigned int a,
unsigned short b,
unsigned short c,
Array<unsigned char>^ n );
a
The first 4 bytes of the GUID.
b
The next 2 bytes of the GUID.
c
The next 2 bytes of the GUID.
d
The next byte of the GUID.
e
The next byte of the GUID.
f
The next byte of the GUID.
g
The next byte of the GUID.
h
The next byte of the GUID.
i
The next byte of the GUID.
j
The next byte of the GUID.
k
The next byte of the GUID.
m
A GUID as defined .
n
The remaining 8 bytes of the GUID.
Compares two guids.
Platform::Guid::operator==
True if the two guids are equal.
Compares two guids.
Platform::Guid::operator!=
True if the two guids are not equal.
Implicitly converts a GUID structureGUID to a Platform::Guid.
Platform::Guid operator()
A Guid struct.