语言

DateTimeValue.Implicit 操作员

定义

重载

名称 说明
Implicit(DateTime to DateTimeValue)

通过隐式转换所提供的DateTime值来初始化 类的新实例DateTimeValue。

Implicit(DateTimeValue to DateTime)

将指定的值隐式转换为 DateTime 值。

Implicit(DateTime to DateTimeValue)

通过隐式转换所提供的DateTime值来初始化 类的新实例DateTimeValue。

public static implicit operator DocumentFormat.OpenXml.DateTimeValue(DateTime value);
static member op_Implicit : DateTime -> DocumentFormat.OpenXml.DateTimeValue
Public Shared Widening Operator CType (value As DateTime) As DateTimeValue

参数

value
DateTime

值 DateTime 。

返回

具有 值的新 DateTimeValue 实例。

适用于

Implicit(DateTimeValue to DateTime)

将指定的值隐式转换为 DateTime 值。

public static implicit operator DateTime(DocumentFormat.OpenXml.DateTimeValue xmlAttribute);
public static implicit operator DateTime(DocumentFormat.OpenXml.DateTimeValue value);
static member op_Implicit : DocumentFormat.OpenXml.DateTimeValue -> DateTime
static member op_Implicit : DocumentFormat.OpenXml.DateTimeValue -> DateTime
Public Shared Widening Operator CType (xmlAttribute As DateTimeValue) As DateTime
Public Shared Widening Operator CType (value As DateTimeValue) As DateTime

参数

xmlAttributevalue
DateTimeValue

返回

转换后 DateTime 的值。

例外

当 为 null时value引发。

适用于