EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

Convert.ToInt16 Method (UInt32)

May 11, 2014

Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit signed integer.

This API is not CLS-compliant. 

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

[CLSCompliantAttribute(false)]
public static short ToInt16(
	uint value
)

Parameters

value
Type: System.UInt32
A 32-bit unsigned integer.

Return Value

Type: System.Int16
A 16-bit signed integer equivalent to the value of value.

ExceptionCondition
OverflowException

value is greater than Int16.MaxValue.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Afficher:
© 2014 Microsoft