Guid.Variant プロパティ

定義

Guidのバリアント 型フィールドの値を取得します。

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

プロパティ値

注釈

このプロパティは、as-is4 ビットをすべて返します。 バリアント フィールドのビット数が少ない場合は、 RFC 9562 で結果を解釈する方法を参照してください。

たとえば、[UUIDv7 標準](https://www.rfc-editor.org/rfc/rfc9562.html#uuidv7) では、2 つ以上の有効ビットが "don't care" として文書化されるため、フィールドの最上位ビットを 2 つだけ考慮することをお勧めします。

適用対象