Table of Contents

Class BsonSerializationException

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents a BSON serialization exception.

[Serializable]
public class BsonSerializationException : BsonException, ISerializable
Inheritance
BsonSerializationException
Implements
Inherited Members
Extension Methods

Constructors

BsonSerializationException()

Initializes a new instance of the BsonSerializationException class.

public BsonSerializationException()

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.

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.