Guid

suggest change

Introduction

GUID (or UUID) is an acronym for ‘Globally Unique Identifier’ (or ‘Universally Unique Identifier’). It is a 128-bit integer number used to identify resources.

Remarks

A Guid is a globally unique identifier, also called a UUID (universally unique identifier).

A Guid is 128 bits, so there are 2^128 (about 3.4 × 10^38) possible values. Guid.NewGuid produces a version-4 value, whose random bits make a collision impractical. Other UUID versions are based on time or a name rather than on random bits.

Guids are most often used as primary keys in databases. Their advantage is that you don’t have to call the database to get a new ID that is (almost) guaranteed to be unique.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents