Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Translators Namespace / ReadFile Class / ReadFile Constructor / ReadFile Constructor(Stream,FileSerializer)
The file stream
The file serializer that must be used to read the file. Use this when you need to include additional fields definition for reading custom entities.

In This Topic
    ReadFile Constructor(Stream,FileSerializer)
    In This Topic
    File stream and fileSerializer constructor.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal stream As Stream, _
       ByVal fileSerializer As FileSerializer _
    )
    public ReadFile( 
       Stream stream,
       FileSerializer fileSerializer
    )

    Parameters

    stream
    The file stream
    fileSerializer
    The file serializer that must be used to read the file. Use this when you need to include additional fields definition for reading custom entities.
    Remarks
    If you want to include special Autodesk objects like LayerEx, LinearPathEx, PictureEx, etc. you need to pass a new FileSerializerEx() as fileSerializer parameter. Use the devDept.Serialization.FileSerializer.FileSerializer Constructor(contentType) constructor to initialize it. The closing of the stream is delegated to you.
    See Also