SetGuid Method
SetGuid(ReadOnlySpan<byte>)
Set the Guid with the given value. If the array is not exactly 16 bytes, this method will throw an exception.
C#
public void SetGuid(ReadOnlySpan<byte> guidValue)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<byte> | guidValue | The GUID to use. |
Exceptions
Type | Condition |
---|---|
ArgumentException | The data is not exactly 16 bytes. |
Remarks
If there is a GUID value already in this object, this method will overwrite it.