Class BsonGuidRepresentationAttribute
| MongoDB CSharp Driver API Reference (original) (raw)
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 : BsonSerializationOptionsAttribute, IBsonMemberMapAttributeInheritance
BsonGuidRepresentationAttribute
Implements
Inherited Members
Extension Methods
Constructors
BsonGuidRepresentationAttribute(GuidRepresentation)
Initializes a new instance of the BsonGuidRepresentationAttribute class.
Properties
Gets the Guid representation.
Methods
Reconfigures the specified serializer by applying this attribute to it.