GuidGeneratorParameters
Introduction
To use this class in your project you must include this line of code in your "using" region:
C#
using LeoCorpLibrary;
VB
Imports LeoCorpLibrary
Note
This class doesn't have any methods.
This class is available in version 2.2 and higher.
Compatibility
Frameworks | LeoCorpLibrary | LeoCorpLibrary.Core |
---|---|---|
.NET 6 | ✔ | ✔ |
.NET 5 | ✔ | ✔ |
.NET Core 3.1 | ✔ | ✔ |
.NET Framework 4.5 | ✔ | ✔ |
Properties
Length
Value | int |
---|
The length of the generated Guid. Example:
If Length = 15:
0d7d75295da745f
UseUpperCaseOnly
Value | bool |
---|
If set to true
, the generated Guid will be only in upper case. If set to false
, the Guid will be only in lower case. Example:
If true:
EF634CE7-CF29-4190-8185-F6A2BE71798A
If false:
6eeb2cfc-ef07-47e6-9813-2ea9ce22fb4a
WithBraces
Value | bool |
---|
If set to true
, the generated Guid will have braces, example:
{9be1663c-0be6-4ae5-a34e-b877dfb00272}
WithHyphens
Value | bool |
---|
If set to true
, the generated Guid will have hyphens. If set to false, the generated Guid won't have any hyphens. Example:
If true
379fd196-8896-4120-9055-191cd4314827
If false
0d7d75295da745f1b25d98ee0c862a10