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, 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(IBsonSerializer)

Reconfigures the specified serializer by applying this attribute to it.