DateTimeValue.Implicit Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
.