Editar

Compartir a través de


Guid.Variant Property

Definition

Gets the value of the variant field for the Guid.

public:
 property int Variant { int get(); };
public int Variant { get; }
member this.Variant : int
Public ReadOnly Property Variant As Integer

Property Value

Remarks

This property returns all 4 bits as-is. If you only care about fewer bits of the variant field, see RFC 9562 for information on how to interpret the result.

For example, [the UUIDv7 standard](https://www.rfc-editor.org/rfc/rfc9562.html#uuidv7) might only want to consider the two most significant bits of the field, as the least two significant bits are documented as "don't-care".

Applies to