ObjectDiscriminatorConvention Class |
Namespace: MongoDB.Bson.Serialization.Conventions
The ObjectDiscriminatorConvention type exposes the following members.
Name | Description | |
---|---|---|
ObjectDiscriminatorConvention |
Initializes a new instance of the ObjectDiscriminatorConvention class.
|
Name | Description | |
---|---|---|
ElementName |
Gets the discriminator element name.
| |
Instance |
Gets an instance of the ObjectDiscriminatorConvention.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetActualType |
Gets the actual type of an object by reading the discriminator from a BsonReader.
| |
GetDiscriminator |
Gets the discriminator value for an actual type.
| |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |