Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UInt16 Structure

Represents a 16-bit unsigned integer.

This structure is not CLS-compliant.  

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

[SerializableAttribute] 
[CLSCompliantAttribute(false)] 
[ComVisibleAttribute(true)] 
public struct UInt16 : IComparable, IFormattable, IConvertible, 
	IComparable<ushort>, IEquatable<ushort>
/** @attribute SerializableAttribute() */ 
/** @attribute CLSCompliantAttribute(false) */ 
/** @attribute ComVisibleAttribute(true) */ 
public final class UInt16 extends ValueType implements IComparable, IFormattable, 
	IConvertible, IComparable<UInt16>, IEquatable<UInt16>
JScript suports the use of structures, but not the declaration of new ones.

The UInt16 value type represents unsigned integers with values ranging from 0 to 65535.

UInt16 provides methods to compare instances of this type, convert the value of an instance to its string representation, and convert the string representation of a number to an instance of this type.

For information about how format specification codes control the string representation of value types, see Formatting Overview.

This type implements interfaces IComparable, IComparable, IFormattable, and IConvertible. Use the Convert class for conversions instead of this type's explicit interface member implementation of IConvertible.

This type is safe for multithreaded operations.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

Show:
© 2014 Microsoft