You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cppcx/platform-guid-value-class.md
+71-30Lines changed: 71 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Platform::Guid value class"
3
-
ms.date: "12/30/2016"
3
+
ms.date: "01/15/2019"
4
4
ms.topic: "reference"
5
5
f1_keywords: ["VCCORLIB/Platform::Guid"]
6
6
helpviewer_keywords: ["Platform::Guid Struct"]
@@ -18,18 +18,19 @@ public value struct Guid
18
18
19
19
### Members
20
20
21
-
Guid has the Equals(), GetHashCode(), and ToString() methods derived from the [Platform::Object Class](../cppcx/platform-object-class.md), and the GetTypeCode() method derived from the [Platform::Type Class](../cppcx/platform-type-class.md). Guid also has the following members.
21
+
`Platform::Guid` has the `Equals()`, `GetHashCode()`, and `ToString()` methods derived from the [Platform::Object Class](../cppcx/platform-object-class.md), and the `GetTypeCode()` method derived from the [Platform::Type Class](../cppcx/platform-type-class.md). `Platform::Guid` also has the following members.
22
22
23
23
|Member|Description|
24
24
|------------|-----------------|
25
-
|[Guid](#ctor)|Initializes a new instance of the Guid struct.|
25
+
|[Guid](#ctor)|Initializes a new instance of a `Platform::Guid`.|
|[operator<](#operator-less)|Less than operator.|
29
+
|[operator()](#operator-call)|Converts a `Platform::Guid` to a `GUID`.|
29
30
30
31
### Remarks
31
32
32
-
For an example of how to generate a new Platform::Guid using the Windows function [CoCreateGuid](/windows/desktop/api/combaseapi/nf-combaseapi-cocreateguid), see [WinRT component: How to generate a GUID?](http://blogs.msdn.com/b/eternalcoding/archive/2013/03/25/winrt-component-how-to-generate-a-guid.aspx)
33
+
For an example of how to generate a new `Platform::Guid` using the Windows function [CoCreateGuid](/windows/desktop/api/combaseapi/nf-combaseapi-cocreateguid), see [WinRT component: How to generate a GUID?](https://www.eternalcoding.com/?p=383)
33
34
34
35
### Requirements
35
36
@@ -43,7 +44,7 @@ For an example of how to generate a new Platform::Guid using the Windows functio
43
44
44
45
## <a name="ctor"></a> Guid::Guid Constructors
45
46
46
-
Initializes a new instance of a Guid struct.
47
+
Initializes a new instance of a `Platform::Guid`.
47
48
48
49
### Syntax
49
50
@@ -73,86 +74,126 @@ Guid(
73
74
### Parameters
74
75
75
76
*a*<br/>
76
-
The first 4 bytes of the GUID.
77
+
The first 4 bytes of the `GUID`.
77
78
78
79
*b*<br/>
79
-
The next 2 bytes of the GUID.
80
+
The next 2 bytes of the `GUID`.
80
81
81
82
*c*<br/>
82
-
The next 2 bytes of the GUID.
83
+
The next 2 bytes of the `GUID`.
83
84
84
85
*d*<br/>
85
-
The next byte of the GUID.
86
+
The next byte of the `GUID`.
86
87
87
88
*e*<br/>
88
-
The next byte of the GUID.
89
+
The next byte of the `GUID`.
89
90
90
91
*f*<br/>
91
-
The next byte of the GUID.
92
+
The next byte of the `GUID`.
92
93
93
94
*g*<br/>
94
-
The next byte of the GUID.
95
+
The next byte of the `GUID`.
95
96
96
97
*h*<br/>
97
-
The next byte of the GUID.
98
+
The next byte of the `GUID`.
98
99
99
100
*i*<br/>
100
-
The next byte of the GUID.
101
+
The next byte of the `GUID`.
101
102
102
103
*j*<br/>
103
-
The next byte of the GUID.
104
+
The next byte of the `GUID`.
104
105
105
106
*k*<br/>
106
-
The next byte of the GUID.
107
+
The next byte of the `GUID`.
107
108
108
109
*m*<br/>
109
-
A GUID as defined.
110
+
A `GUID` in the form a [GUID structure](https://msdn.microsoft.com/library/windows/desktop/aa373931).
True if *guid1* is ordered before *guid2*. The ordering is lexicographic after treating each `Platform::Guid` as if it's an array of four 32-bit unsigned values. This isn't the ordering used by SQL Server or the .NET Framework, nor is it the same as lexicographical ordering by string representation.
180
+
181
+
This operator is provided so that `Guid` objects can be more easily consumed by the C++ standard library.
0 commit comments