SerializationInfo.GetString(String) Método
Definición
Recupera un valor String del almacén SerializationInfo.Retrieves a String value from the SerializationInfo store.
public:
System::String ^ GetString(System::String ^ name);
public string GetString (string name);
member this.GetString : string -> string
Public Function GetString (name As String) As String
Parámetros
- name
- String
Nombre asociado con el valor que se va a recuperar.The name associated with the value to retrieve.
Devoluciones
Excepciones
name
es null
.name
is null
.
El valor asociado a name
no se puede convertir en String.The value associated with name
cannot be converted to a String.
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 Stringo se puede convertir Stringen, se devuelve ese valor; en caso contrario, se produce InvalidCastException una excepción.If the value is a String, or can be converted to a String, 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.