แก้ไข

แชร์ผ่าน


SerializationInfo.GetByte(String) Method

Definition

Retrieves an 8-bit unsigned integer value from the SerializationInfo store.

public:
 System::Byte GetByte(System::String ^ name);
public byte GetByte (string name);
member this.GetByte : string -> byte
Public Function GetByte (name As String) As Byte

Parameters

name
String

The name associated with the value to retrieve.

Returns

The 8-bit unsigned integer associated with name.

Exceptions

name is null.

The value associated with name cannot be converted to an 8-bit unsigned integer.

An element with the specified name is not found in the current instance.

Remarks

If the value is an 8-bit unsigned integer, or can be converted to one, that value is returned; otherwise, a InvalidCastException is thrown. All conversions are done by the IFormatterConverter associated with this SerializationInfo.

Applies to