Share via


DateTimeValue.Implicit Operator

Definition

Overloads

Implicit(DateTime to DateTimeValue)

Initializes a new instance of the DateTimeValue class by implicitly converting the supplied DateTime value.

Implicit(DateTimeValue to DateTime)

Implicitly converts the specified value to a DateTime value.

Implicit(DateTime to DateTimeValue)

Initializes a new instance of the DateTimeValue class by implicitly converting the supplied DateTime value.

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

Parameters

value
DateTime

The DateTime value.

Returns

A new DateTimeValue instance with the value.

Applies to

Implicit(DateTimeValue to DateTime)

Implicitly converts the specified value to a DateTime value.

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

Parameters

xmlAttributevalue
DateTimeValue

Returns

The converted DateTime value.

Exceptions

Thrown when value is null.

Applies to