Table of Contents

Constructor BsonSerializationException

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

BsonSerializationException()

Initializes a new instance of the BsonSerializationException class.

public BsonSerializationException()

BsonSerializationException(string)

Initializes a new instance of the BsonSerializationException class.

public BsonSerializationException(string message)

Parameters

message string

The error message.

BsonSerializationException(string, Exception)

Initializes a new instance of the BsonSerializationException class.

public BsonSerializationException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The inner exception.

BsonSerializationException(SerializationInfo, StreamingContext)

Initializes a new instance of the BsonSerializationException class (this overload used by deserialization).

public BsonSerializationException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.