AsnWriter.WriteEncodedValue(ReadOnlySpan<Byte>) Method

Definition

Write a single value which has already been encoded.

public void WriteEncodedValue (ReadOnlySpan<byte> value);

Parameters

value
ReadOnlySpan<Byte>

The value to write.

Exceptions

value could not be read under the current encoding rules.

 -or-

 <code data-dev-comment-type="paramref">value</code> has data beyond the end of the first value.

Remarks

This method only checks that the tag and length are encoded according to the current ruleset, and that the end of the value is the end of the input. The contents are not evaluated for semantic meaning.

Applies to

منتج الإصدارات
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)