Skip to content

Commit 9ec74f8

Browse files
committed
DOCSP-44476 - BsonValue properties (#256)
(cherry picked from commit dd333de)
1 parent fcc74c6 commit 9ec74f8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/upgrade/v3.txt

+12
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,15 @@ Version 3.0 Breaking Changes
163163
`Double.PositiveInfinity, <https://learn.microsoft.com/en-us/dotnet/api/system.double.positiveinfinity?view=net-8.0#system-double-positiveinfinity>`__
164164
and `Double.NegativeInfinity. <https://learn.microsoft.com/en-us/dotnet/api/system.double.negativeinfinity?view=net-8.0#system-double-negativeinfinity>`__
165165
on MSDN.
166+
167+
- The driver includes the following changes to the ``BsonValue`` class:
168+
169+
- Removes the ``[Obsolete]`` attribute from the ``AsLocalTime`` and
170+
``AsUniversalTime`` properties.
171+
- Adds the `AsNullableLocalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableLocalTime.html#MongoDB_Bson_BsonValue_AsNullableLocalTime>`__
172+
and `AsNullableUniversalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableUniversalTime.html#MongoDB_Bson_BsonValue_AsNullableUniversalTime>`__
173+
properties.
174+
- Removes the ``AsDateTime`` property. Use the `AsUniversalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsUniversalTime.html#MongoDB_Bson_BsonValue_AsUniversalTime>`__
175+
property instead.
176+
- Removes the ``AsNullableDateTime`` property. Use the `AsNullableUniversalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableUniversalTime.html#MongoDB_Bson_BsonValue_AsNullableUniversalTime>`__
177+
property instead.

0 commit comments

Comments
 (0)