BsonExtensionMethods Class |
A static class containing BSON extension methods.
Inheritance Hierarchy
Namespace:
MongoDB.Bson
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntaxpublic static class BsonExtensionMethods
<ExtensionAttribute>
Public NotInheritable Class BsonExtensionMethods
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type BsonExtensionMethods = class end
Methods
| Name | Description |
---|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | ToBson(Object, Type, BsonBinaryWriterSettings, IBsonSerializer, ActionBsonSerializationContextBuilder, BsonSerializationArgs) |
Serializes an object to a BSON byte array.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | ToBsonTNominalType(TNominalType, IBsonSerializerTNominalType, BsonBinaryWriterSettings, ActionBsonSerializationContextBuilder, BsonSerializationArgs) |
Serializes an object to a BSON byte array.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | ToBsonDocument(Object, Type, IBsonSerializer, ActionBsonSerializationContextBuilder, BsonSerializationArgs) |
Serializes an object to a BsonDocument.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | ToBsonDocumentTNominalType(TNominalType, IBsonSerializerTNominalType, ActionBsonSerializationContextBuilder, BsonSerializationArgs) |
Serializes an object to a BsonDocument.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | ToJson(Object, Type, JsonWriterSettings, IBsonSerializer, ActionBsonSerializationContextBuilder, BsonSerializationArgs) |
Serializes an object to a JSON string.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | ToJsonTNominalType(TNominalType, JsonWriterSettings, IBsonSerializerTNominalType, ActionBsonSerializationContextBuilder, BsonSerializationArgs) |
Serializes an object to a JSON string.
|
Top
See Also