SerializationInfo.GetUInt32(String) 方法

定义

重要

此 API 不符合 CLS。

SerializationInfo 存储中检索一个 32 位无符号整数值。

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

参数

name
String

与要检索的值关联的名称。

返回

UInt32

name 关联的 32 位无符号整数。

属性

例外

namenull

name 关联的值不能转换为 32 位无符号整数。

当前实例中没有找到具有指定名称的元素。

注解

如果值为 32 位有符号整数,或者可以转换为 1,则返回该值;否则,将引发 a InvalidCastException 。 所有转换由 IFormatterConverter 与此 SerializationInfo关联的操作完成。

适用于