SerializationInfo.GetByte(String) Metodo
Definizione
Recupera un intero senza segno a 8 bit dall'archivio SerializationInfo.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
Parametri
- name
- String
Nome associato al valore da recuperare.The name associated with the value to retrieve.
Restituisce
Intero senza segno a 8 bit associato a name
.The 8-bit unsigned integer associated with name
.
Eccezioni
name
è null
.name
is null
.
Il valore associato a name
non può essere convertito in un intero senza segno a 8 bit.The value associated with name
cannot be converted to an 8-bit unsigned integer.
Non è possibile trovare un elemento con il nome specificato nell'istanza corrente.An element with the specified name is not found in the current instance.
Commenti
Se il valore è un Unsigned Integer a 8 bit oppure può essere convertito in uno, viene restituito tale valore; in caso contrario, InvalidCastException viene generata un'eccezione.If the value is an 8-bit unsigned integer, or can be converted to one, that value is returned; otherwise, a InvalidCastException is thrown. Tutte le conversioni vengono eseguite dall'oggetto IFormatterConverter associato a SerializationInfo .All conversions are done by the IFormatterConverter associated with this SerializationInfo.