ReadFile(Stream, FileSerializer, Boolean) Constructor

File stream and fileSerializer 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.
public ReadFile( 
Stream stream
FileSerializer fileSerializer
bool headerOnly = 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.

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 FileSerializer constructor to initialize it. The closing of the stream is delegated to you.

.NET Framework

Supported in: 4.8

In this article

Definition