CborWriter.WriteTag(CborTag) Method

Definition

Important

This API is not CLS-compliant.

Assign a semantic tag (major type 6) to the next data item.

public:
 void WriteTag(System::Formats::Cbor::CborTag tag);
[System.CLSCompliant(false)]
public void WriteTag (System.Formats.Cbor.CborTag tag);
[<System.CLSCompliant(false)>]
member this.WriteTag : System.Formats.Cbor.CborTag -> unit
Public Sub WriteTag (tag As CborTag)

Parameters

tag
CborTag

The value to write.

Attributes

Exceptions

Writing a new value exceeds the definite length of the parent data item.

-or-

The major type of the encoded value is not permitted in the parent data item.

-or-

The written data is not accepted under the current conformance mode.

Applies to