FileSerializer.DeserializeHeader Method
Protected Function DeserializeHeader( _
ByVal stream As Stream _
) As contentType
This language is not supported or no code example is available.
Parameters
- stream
- Stream
The stream file.
Return Value
contentTypeThe contentType for deserialization purpose.
Exception type | Condition |
---|---|
Thrown when the file is corrupted. |
|
Thrown when the file version is not supported. |
This method fills and compiles the protocol-buffer model too.