Class BsonGuidRepresentationAttribute
- Namespace
- MongoDB.Bson.Serialization.Attributes
- Assembly
- MongoDB.Bson.dll
Specifies the Guid representation to use with the GuidSerializer for this member.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class BsonGuidRepresentationAttribute : Attribute, IBsonMemberMapAttribute
- Inheritance
-
BsonGuidRepresentationAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
- BsonGuidRepresentationAttribute(GuidRepresentation)
Initializes a new instance of the BsonGuidRepresentationAttribute class.
Properties
- GuidRepresentation
Gets the Guid representation.
Methods
- Apply(BsonMemberMap)
Applies the attribute to the member map.