VersionedBinaryReader::ReadVersioned Method (Int32, VersionedBinaryReader::MultiVersionReadCallback^)

Visual Studio 2015
 

Reads from the base stream, with version checking.

Namespace:   Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
void ReadVersioned(
	int expectedVersion,
	VersionedBinaryReader::MultiVersionReadCallback^ callback
)

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 <paramref name="callback"/>is not invoked.

callback
Type: Microsoft.VisualStudio.Utilities::VersionedBinaryReader::MultiVersionReadCallback^

The delegate that will read the body of the stream.

Return to top
Show: