SerializationInfo.GetSByte(String) Método
Definición
Importante
Esta API no es conforme a CLS.
Recupera un valor entero de 8 bits con signo del almacén SerializationInfo.Retrieves an 8-bit signed integer value from the SerializationInfo store.
public:
System::SByte GetSByte(System::String ^ name);
[System.CLSCompliant(false)]
public sbyte GetSByte (string name);
member this.GetSByte : string -> sbyte
Public Function GetSByte (name As String) As SByte
Parámetros
- name
- String
Nombre asociado con el valor que se va a recuperar.The name associated with the value to retrieve.
Devoluciones
Entero de 8 bits con signo asociado a name
.The 8-bit signed integer associated with name
.
- Atributos
Excepciones
name
es null
.name
is null
.
El valor asociado a name
no se puede convertir en un entero de 8 bits con signo.The value associated with name
cannot be converted to an 8-bit signed integer.
El elemento con el nombre especificado no se encuentra en la instancia actual.An element with the specified name is not found in the current instance.
Comentarios
Si el valor es Int8
, o se puede convertir Int8
en, se devuelve ese valor; en caso contrario, se InvalidCastException produce una excepción.If the value is an Int8
, or can be converted to an Int8
, that value is returned; otherwise, a InvalidCastException is thrown. Todas las conversiones se realizan mediante el IFormatterConverter asociado a este SerializationInfo.All conversions are done by the IFormatterConverter associated with this SerializationInfo.