Click or drag to resize

BsonReaderVerifyBsonType Method

Verifies the current state and BsonType of the reader.

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
protected void VerifyBsonType(
	string methodName,
	BsonType requiredBsonType
)

Parameters

methodName
Type: SystemString
The name of the method calling this one.
requiredBsonType
Type: MongoDB.BsonBsonType
The required BSON type.
See Also