AsnWriter.CopyTo(AsnWriter) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.