VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Annotation.Formatters Namespace / AnnotationVintasoftBinaryFormatter Class / Serialize(Stream,Object) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    Serialize(Stream,Object) Method (AnnotationVintasoftBinaryFormatter)
    In This Topic
    Serializes an AnnotationDataCollection or AnnotationData object to the provided stream.
    Syntax
    'Declaration
    
    Public Overrides Sub Serialize( _
    ByVal serializationStream
    The stream where the formatter puts the serialized data.
    As System.IO.Stream, _
    ByVal graph
    The AnnotationDataCollection or AnnotationData object to serialize. All annotations of AnnotationDataCollection object are automatically serialized.
    As System.Object _
    )
    public override void Serialize(
    System.IO.Stream serializationStream,
    System.Object graph
    )
    public: void Serialize(
    System.IO.Stream* serializationStream,
    System.Object graph
    ); override
    public:
    void Serialize(
    System.IO.Stream^ serializationStream,
    System.Object graph
    ); override

    Parameters

    serializationStream
    The stream where the formatter puts the serialized data.
    graph
    The AnnotationDataCollection or AnnotationData object to serialize. All annotations of AnnotationDataCollection object are automatically serialized.
    Exceptions
    ExceptionDescription
    Thrown if serializationStream or graph is null.
    Thrown if formatter does not support serialization of provided type.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also