Formatter.WriteUInt16(UInt16, String) Formatter.WriteUInt16(UInt16, String) Formatter.WriteUInt16(UInt16, String) Formatter.WriteUInt16(UInt16, String) Method

定义

重要

此 API 不符合 CLS。

当在派生类中重写时,向已经连接到格式化程序的流中写入一个 16 位无符号整数。When overridden in a derived class, writes a 16-bit unsigned integer to the stream already attached to the formatter.

protected:
 abstract void WriteUInt16(System::UInt16 val, System::String ^ name);
[System.CLSCompliant(false)]
protected abstract void WriteUInt16 (ushort val, string name);
abstract member WriteUInt16 : uint16 * string -> unit
Protected MustOverride Sub WriteUInt16 (val As UShort, name As String)

参数

val
UInt16 UInt16 UInt16 UInt16

要写入的值。The value to write.

name
String String String String

成员名。The name of the member.

继承者说明

必须在派生类中实现此方法。You must implement this method in a derived class.

适用于