Click or drag to resize
ConventionPack Class
A mutable pack of conventions.
Inheritance Hierarchy
SystemObject
  MongoDB.Bson.Serialization.ConventionsConventionPack

Namespace: MongoDB.Bson.Serialization.Conventions
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.1.0
Syntax
public class ConventionPack : IConventionPack, 
	IEnumerable<IConvention>, IEnumerable

The ConventionPack type exposes the following members.

Constructors
  NameDescription
Public methodConventionPack
Initializes a new instance of the ConventionPack class.
Top
Methods
  NameDescription
Public methodAdd
Adds the specified convention.
Public methodAddClassMapConvention
Adds a class map convention created using the specified action upon a class map.
Public methodAddMemberMapConvention
Adds a member map convention created using the specified action upon a member map.
Public methodAddPostProcessingConvention
Adds a post processing convention created using the specified action upon a class map.
Public methodAddRange
Adds a range of conventions.
Public methodAppend
Appends the conventions in another pack to the end of this pack.
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 methodGetEnumerator
Gets an enumerator for the conventions.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsertAfter
Inserts the convention after another convention specified by the name.
Public methodInsertBefore
Inserts the convention before another convention specified by the name.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the named convention.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodContainsAllIConvention
Determines whether a sequence contains all of the specified values.
(Defined by LinqToMongo.)
Public Extension MethodContainsAnyIConvention
Determines whether a sequence contains any of the specified values.
(Defined by LinqToMongo.)
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
Properties
  NameDescription
Public propertyConventions
Gets the conventions.
Top
See Also