ReadFile(Stream, FileSerializer, Boolean) Constructor
Public Sub New( _
ByVal stream As Stream, _
ByVal fileSerializer As FileSerializer, _
Optional ByVal headerOnly As Boolean = false _
)
This language is not supported or no code example is available.
Parameters
- stream
- Stream
The file stream
- fileSerializer
- 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.
- headerOnly
- bool
When true only the file header is read.
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 FileSerializer constructor to initialize it.
The closing of the stream is delegated to you.