FileSerializer.DeserializeHeader Method

Deserializes the file header.
Protected Function DeserializeHeader( _ 
ByVal stream As Stream
) As contentType
This language is not supported or no code example is available.
protected contentType DeserializeHeader( 
Stream stream 
)
This language is not supported or no code example is available.

Parameters

stream
Stream

The stream file.

Return Value

contentType

The contentType for deserialization purpose.

Exception type Condition

InvalidOperationException

Thrown when the file is corrupted.

EyeshotException

Thrown when the file version is not supported.

Remarks
 
This method fills and compiles the protocol-buffer model too.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition