GetNewValue Method
GetNewValue()
Return a reference to the submitted new value.
C#
public ReadOnlyMemory<byte> GetNewValue()
Returns
System.ReadOnlyMemory<System.Byte>
A reference to the byte array that is the value requested.
Remarks
There are two possible values: a current and new. For many case,
there will only be a current. But for some operations (such as
changing a PIV PIN), there will be both. To get the new value (e.g.
the new PIN if changing the PIN), call this method. If you want to
get the current value, call the GetCurrentValue
method.
Note that this method returns a reference to the value, which means
that the actual data returned will be overwritten after the call to
Clear
.