DotNetCore


Signup    Login    

| My Solutions | My Bookmarks | My Code Snippets | My Questions | My Tutorials |     

GUID stands for Global Unique IDentifier. It is a 32bit unique value, used in many things to uniquely identify an object such as a bluetooth service or a record in a database. The chances of a GUID being the same are fairly low especially if only used within a specific project.





00faa135-eb1d-4af8-902b-736baea77f6c

This utility creates a new GUID in numerous formats using the .Net Frameworks Guid.NewGuid

Dim g As New System.Guid = Guid.NewGuid()

System.Guid g = new Guid.NewGuid();

Use the .tostring method to retrieve the GUID in a string format

Format

Return Value

B

32 digits separated by hyphens and enclosed in brackets

{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

D

32 digits separated by hyphens

xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

N

32 digits

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

P

32 digits separated by hyphens and enclosed in parentheses

(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)