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 | |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| | DateOnly | Gets or sets whether the DateTime consists of a Date only. |
|
| Kind | Gets or sets the DateTimeKind (Local, Unspecified or Utc). |
|
| Representation | Gets or sets the external representation. |
|
| TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |
Methods
Extension Methods
See Also