SerializationInfo.GetUInt32(String) Méthode

Définition

Important

Cette API n’est pas conforme CLS.

Récupère une valeur d’entier 32 bits non signé du magasin SerializationInfo.

public:
 System::UInt32 GetUInt32(System::String ^ name);
[System.CLSCompliant(false)]
public uint GetUInt32 (string name);
[<System.CLSCompliant(false)>]
member this.GetUInt32 : string -> uint32
Public Function GetUInt32 (name As String) As UInteger

Paramètres

name
String

Nom associé à la valeur à récupérer.

Retours

UInt32

Entier 32 bits non signé associé à name.

Attributs

Exceptions

name a la valeur null.

La valeur associée à name ne peut pas être convertie en entier 32 bits non signé.

Un élément portant le nom spécifié est introuvable dans l'instance actuelle.

Remarques

Si la valeur est un entier signé 32 bits ou peut être convertie en un entier signé, cette valeur est retournée ; sinon, une InvalidCastException est levée. Toutes les conversions sont effectuées par l’associé IFormatterConverter à ce SerializationInfo.

S’applique à