Clear Method
Clear()
Clear any data that had been copied from input.
C#
public void Clear()
Exceptions
Type | Condition |
---|---|
TlvException | The method is called before a schema has been completely entered. |
Remarks
If any of the data to encode had been sensitive (such as private key material), then call the Clear method after encoding to make sure it is overwritten.
Call this only after the schema has been completely entered (the outermost NestedTlv has been closed). If you call this before the schema has been completely entered, it can throw an exception.