BsonDateTimeOptionsAttribute Class (original) (raw)

Specifies serialization options for a DateTime field or property.

Inheritance Hierarchy

Namespace: MongoDB.Bson.Serialization.Attributes
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

public class BsonDateTimeOptionsAttribute : BsonSerializationOptionsAttribute

Public Class BsonDateTimeOptionsAttribute Inherits BsonSerializationOptionsAttribute

type BsonDateTimeOptionsAttribute =
class inherit BsonSerializationOptionsAttribute end

The BsonDateTimeOptionsAttribute type exposes the following members.

Constructors

Properties

| | Name | Description | | | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public property | DateOnly | Gets or sets whether the DateTime consists of a Date only. | | Public property | Kind | Gets or sets the DateTimeKind (Local, Unspecified or Utc). | | Public property | Representation | Gets or sets the external representation. | | Public property | TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |

Top

Methods

Extension Methods

See Also

Reference