SerializationInfo.GetByte(String) SerializationInfo.GetByte(String) SerializationInfo.GetByte(String) 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 String String String

The name associated with the value to retrieve.

Returns

The 8-bit unsigned integer associated with name.

Exceptions

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