JsonElement.TryGetDateTime(DateTime) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试将当前 JSON 字符串表示为 .DateTime
public:
bool TryGetDateTime([Runtime::InteropServices::Out] DateTime % value);
public bool TryGetDateTime(out DateTime value);
member this.TryGetDateTime : DateTime -> bool
Public Function TryGetDateTime (ByRef value As DateTime) As Boolean
参数
返回
例外
注解
此方法仅创建符合 ISO 8601-1 扩展格式的 JSON 字符串的 DateTime 表示形式(请参阅 System.Text.Json 中的 DateTime 和 DateTimeOffset 支持)。