UInt16-Struktur

Stellt eine vorzeichenlose 16-Bit-Ganzzahl dar.

Diese Struktur ist nicht CLS-kompatibel.  

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

Syntax

'Declaration
<SerializableAttribute> _
<CLSCompliantAttribute(False)> _
<ComVisibleAttribute(True)> _
Public Structure UInt16
    Implements IComparable, IFormattable, IConvertible, IComparable(Of UShort), _
    IEquatable(Of UShort)
'Usage
Dim instance As UShort
[SerializableAttribute] 
[CLSCompliantAttribute(false)] 
[ComVisibleAttribute(true)] 
public struct UInt16 : IComparable, IFormattable, IConvertible, 
    IComparable<ushort>, IEquatable<ushort>
[SerializableAttribute] 
[CLSCompliantAttribute(false)] 
[ComVisibleAttribute(true)] 
public value class UInt16 : IComparable, IFormattable, IConvertible, 
    IComparable<unsigned short>, IEquatable<unsigned short>
/** @attribute SerializableAttribute() */ 
/** @attribute CLSCompliantAttribute(false) */ 
/** @attribute ComVisibleAttribute(true) */ 
public final class UInt16 extends ValueType implements IComparable, IFormattable, 
    IConvertible, IComparable<UInt16>, IEquatable<UInt16>
JScript unterstützt die Verwendung von Strukturen, aber nicht die Deklaration von neuen Strukturen.

Hinweise

Der Werttyp UInt16 stellt ganze Zahlen ohne Vorzeichen mit Werten zwischen 0 und 65535 dar.

UInt16 stellt Methoden zum Vergleichen von Instanzen dieses Typs, zum Konvertieren des Werts einer Instanz in die entsprechende Zeichenfolgendarstellung und zum Konvertieren der Zeichenfolgendarstellung einer Zahl in eine Instanz dieses Typs bereit.

Informationen zur Steuerung der Zeichenfolgendarstellung von Werttypen mit Codes für die Formatangabe finden Sie unter Übersicht über Formatierung.

Dieser Typ implementiert die Schnittstellen IComparable, IComparable, IFormattable und IConvertible. Verwenden Sie für Konvertierungen die Convert-Klasse anstelle der expliziten Implementierung der Schnittstellenmember von IConvertible für diesen Typ.

Threadsicherheit

Dieser Typ ist sicher bei Multithreadoperationen.

Plattformen

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

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

.NET Compact Framework

Unterstützt in: 2.0, 1.0

Siehe auch

Referenz

UInt16-Member
System-Namespace
Int32-Struktur