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 |
---|---|---|
System.ReadOnlySpan<System.Byte> | guidValue | The GUID to use. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The data is not exactly 16 bytes. |
Remarks
If there is a GUID value already in this object, this method will overwrite it.