VersionedBinaryReader::ReadVersioned Method (Int32, VersionedBinaryReader::ReadCallback^, Boolean)
Visual Studio 2015
Reads from the base stream, with version checking.
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
public: void ReadVersioned( int expectedVersion, VersionedBinaryReader::ReadCallback^ callback, bool throwOnUnexpectedVersion = false )
Parameters
- expectedVersion
-
Type:
System::Int32
The expected version of the stream. If the actual version doesn't match the expected version, the stream position is advanced beyond the content but callback is not invoked.
- callback
-
Type:
Microsoft.VisualStudio.Utilities::VersionedBinaryReader::ReadCallback^
The delegate that will read the body of the stream.
- throwOnUnexpectedVersion
-
Type:
System::Boolean
True to throw an exception on encountering an unexpected version.
Show: