Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Formatter.WriteUInt16 Method

When overridden in a derived class, writes a 16-bit unsigned integer to the stream already attached to the formatter.

The Formatter type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
<CLSCompliant(False)>
Protected MustOverride Sub WriteUInt16( _
   ByVal val As UInt16, _
   ByVal name As String _
)
[C#]
[CLSCompliant(false)]
protected abstract void WriteUInt16(
 ushort val,
 string name
);
[C++]
[CLSCompliant(false)]
protected: virtual void WriteUInt16(
 unsigned short val,
 String* name
) = 0;
[JScript]
protected
   CLSCompliant(false)
abstract function WriteUInt16(
 val : UInt16,
 name : String
);

Parameters

val
The value to write.
name
The name of the member.

Remarks

Notes to Inheritors:  You must implement this method in a derived class.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Formatter Class | Formatter Members | System.Runtime.Serialization Namespace

Show:
© 2015 Microsoft