SlotAccessCode Constructor
SlotAccessCode()
Constructs a SlotAccessCode instance with an empty (all zeros) code.
C#
public SlotAccessCode()
SlotAccessCode(ReadOnlyMemory<Byte>)
Constructs a SlotAccessCode instance using the bytes in the collection.
C#
public SlotAccessCode(ReadOnlyMemory<byte> bytes)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | bytes | The bytes to use to construct the SlotAccessCode. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if the length exceeds MaxAccessCodeLength |