UInt16Value.Implicit 运算符

定义

重载

Implicit(UInt16 to UInt16Value)

将值隐式转换为UInt16UInt16Value类。

Implicit(UInt16Value to UInt16)

将指定的 UInt16Value 对象隐式转换为 UInt16 值。

Implicit(UInt16 to UInt16Value)

将值隐式转换为UInt16UInt16Value类。

public static implicit operator DocumentFormat.OpenXml.UInt16Value (ushort value);
static member op_Implicit : uint16 -> DocumentFormat.OpenXml.UInt16Value
Public Shared Widening Operator CType (value As UShort) As UInt16Value

参数

value
UInt16

指定的值。

返回

具有 值的新 UInt16Value 实例。

适用于

Implicit(UInt16Value to UInt16)

将指定的 UInt16Value 对象隐式转换为 UInt16 值。

public static implicit operator ushort (DocumentFormat.OpenXml.UInt16Value xmlAttribute);
public static implicit operator ushort (DocumentFormat.OpenXml.UInt16Value value);
static member op_Implicit : DocumentFormat.OpenXml.UInt16Value -> uint16
static member op_Implicit : DocumentFormat.OpenXml.UInt16Value -> uint16
Public Shared Widening Operator CType (xmlAttribute As UInt16Value) As UShort
Public Shared Widening Operator CType (value As UInt16Value) As UShort

参数

xmlAttributevalue
UInt16Value

返回

转换后 UInt16 的值。

例外

当 为 nullvalue引发。

适用于