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.DateTimeValuePublic Shared Widening Operator CType (value As DateTime) As DateTimeValueParameters
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 -> DateTimestatic member op_Implicit : DocumentFormat.OpenXml.DateTimeValue -> DateTimePublic Shared Widening Operator CType (xmlAttribute As DateTimeValue) As DateTimePublic Shared Widening Operator CType (value As DateTimeValue) As DateTimeParameters
- xmlAttributevalue
- DateTimeValue
Returns
The converted DateTime value.
Exceptions
Thrown when value is null.