RepresentationSerializationOptions ClassMongoDB C# Driver API Documentation
Represents the external representation of a field or property.
Inheritance Hierarchy

SystemObject
  MongoDB.Bson.Serialization.OptionsBsonBaseSerializationOptions
    MongoDB.Bson.Serialization.OptionsRepresentationSerializationOptions

Namespace: MongoDB.Bson.Serialization.Options
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: { version: '1.11.0.92', semver: '1.11.0', commit: '791a16588d4a8b3b118a8b3b57cfa436fec5d3da', commitDate: '2015-12-08 22:55:45' }
Syntax

public class RepresentationSerializationOptions : BsonBaseSerializationOptions

The RepresentationSerializationOptions type exposes the following members.

Constructors

  NameDescription
Public methodRepresentationSerializationOptions(BsonType)
Initializes a new instance of the RepresentationSerializationOptions class.
Public methodRepresentationSerializationOptions(BsonType, Boolean, Boolean)
Initializes a new instance of the RepresentationSerializationOptions class.
Top
Methods

  NameDescription
Public methodApplyAttribute
Apply an attribute to these serialization options and modify the options accordingly.
(Overrides BsonBaseSerializationOptionsApplyAttribute(IBsonSerializer, Attribute).)
Public methodClone
Clones the serialization options.
(Overrides BsonBaseSerializationOptionsClone.)
Protected methodEnsureNotFrozen
Ensures that this instance is not frozen.
(Inherited from BsonBaseSerializationOptions.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFreeze
Freezes the serialization options.
(Inherited from BsonBaseSerializationOptions.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToDecimal(Double)
Converts a Double to a Decimal.
Public methodToDecimal(Int32)
Converts an Int32 to a Decimal.
Public methodToDecimal(Int64)
Converts an Int64 to a Decimal.
Public methodToDouble(Decimal)
Converts a Decimal to a Double.
Public methodToDouble(Double)
Converts a Double to a Double.
Public methodToDouble(Int16)
Converts an Int16 to a Double.
Public methodToDouble(Int32)
Converts an Int32 to a Double.
Public methodToDouble(Int64)
Converts an Int64 to a Double.
Public methodToDouble(Single)
Converts a Single to a Double.
Public methodToDouble(UInt16)
Converts a UInt16 to a Double.
Public methodToDouble(UInt32)
Converts a UInt32 to a Double.
Public methodToDouble(UInt64)
Converts a UInt64 to a Double.
Public methodToInt16(Double)
Converts a Double to an Int16.
Public methodToInt16(Int32)
Converts an Int32 to an Int16.
Public methodToInt16(Int64)
Converts an Int64 to an Int16.
Public methodToInt32(Decimal)
Converts a Decimal to an Int32.
Public methodToInt32(Double)
Converts a Double to an Int32.
Public methodToInt32(Int16)
Converts an Int16 to an Int32.
Public methodToInt32(Int32)
Converts an Int32 to an Int32.
Public methodToInt32(Int64)
Converts an Int64 to an Int32.
Public methodToInt32(Single)
Converts a Single to an Int32.
Public methodToInt32(UInt16)
Converts a UInt16 to an Int32.
Public methodToInt32(UInt32)
Converts a UInt32 to an Int32.
Public methodToInt32(UInt64)
Converts a UInt64 to an Int32.
Public methodToInt64(Decimal)
Converts a Decimal to an Int64.
Public methodToInt64(Double)
Converts a Double to an Int64.
Public methodToInt64(Int16)
Converts an Int16 to an Int64.
Public methodToInt64(Int32)
Converts an Int32 to an Int64.
Public methodToInt64(Int64)
Converts an Int64 to an Int64.
Public methodToInt64(Single)
Converts a Single to an Int64.
Public methodToInt64(UInt16)
Converts a UInt16 to an Int64.
Public methodToInt64(UInt32)
Converts a UInt32 to an Int64.
Public methodToInt64(UInt64)
Converts a UInt64 to an Int64.
Public methodToSingle(Double)
Converts a Double to a Single.
Public methodToSingle(Int32)
Converts an Int32 to a Single.
Public methodToSingle(Int64)
Converts an Int64 to a Single.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToUInt16(Double)
Converts a Double to a UInt16.
Public methodToUInt16(Int32)
Converts an Int32 to a UInt16.
Public methodToUInt16(Int64)
Converts an Int64 to a UInt16.
Public methodToUInt32(Double)
Converts a Double to a UInt32.
Public methodToUInt32(Int32)
Converts an Int32 to a UInt32.
Public methodToUInt32(Int64)
Converts an Int64 to a UInt32.
Public methodToUInt64(Double)
Converts a Double to a UInt64.
Public methodToUInt64(Int32)
Converts an Int32 to a UInt64.
Public methodToUInt64(Int64)
Converts an Int64 to a UInt64.
Top
Extension Methods

  NameDescription
Public Extension MethodToBson(Type)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, IBsonSerializationOptions, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument(Type)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, IBsonSerializationOptions, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
Properties

  NameDescription
Public propertyAllowOverflow
Gets whether to allow overflow.
Public propertyAllowTruncation
Gets whether to allow truncation.
Public propertyIsFrozen
Gets whether the serialization options are frozen.
(Inherited from BsonBaseSerializationOptions.)
Public propertyRepresentation
Gets the external representation.
Top
See Also

Reference