다음을 통해 공유


AsnWriter.CopyTo(AsnWriter) Method

Definition

Copy the value of this writer into another.

public:
 void CopyTo(System::Formats::Asn1::AsnWriter ^ destination);
public void CopyTo (System.Formats.Asn1.AsnWriter destination);
member this.CopyTo : System.Formats.Asn1.AsnWriter -> unit
Public Sub CopyTo (destination As AsnWriter)

Parameters

destination
AsnWriter

The writer to receive the value.

Exceptions

destination is null.

A PushSequence(Nullable<Asn1Tag>) or PushSetOf(Nullable<Asn1Tag>) has not been closed via PopSequence(Nullable<Asn1Tag>) or PopSetOf(Nullable<Asn1Tag>). -or- This writer is empty. -or- This writer represents more than one top-level value. -or- This writer's value is encoded in a manner that is not compatible with the ruleset for the destination writer.

Applies to