SerializationInfo.GetDouble(String) Methode
Definition
Ruft einen Gleitkommawert mit doppelter Genauigkeit aus dem SerializationInfo-Speicher ab.Retrieves a double-precision floating-point value from the SerializationInfo store.
public:
double GetDouble(System::String ^ name);
public double GetDouble (string name);
member this.GetDouble : string -> double
Public Function GetDouble (name As String) As Double
Parameter
- name
- String
Der dem abzurufenden Wert zugeordnete Name.The name associated with the value to retrieve.
Gibt zurück
Der Gleitkommawert mit doppelter Genauigkeit, dem name
zugeordnet ist.The double-precision floating-point value associated with name
.
Ausnahmen
name
ist null
.name
is null
.
Der Wert, dem name
zugeordnet ist, kann nicht in einen Gleitkommawert mit doppelter Genauigkeit konvertiert werden.The value associated with name
cannot be converted to a double-precision floating-point value.
In der aktuellen Instanz wurde kein Element mit dem angegebenen Namen gefunden.An element with the specified name is not found in the current instance.
Hinweise
Wenn der Wert ein Double ist oder in einen Double-Wert konvertiert werden kann, wird dieser Wert zurückgegeben. Andernfalls wird eine ausgelöst InvalidCastException .If the value is a double, or can be converted to a double, that value is returned; otherwise, a InvalidCastException is thrown. Alle Konvertierungen werden von dem durchgeführt, der IFormatterConverter diesem zugeordnet ist SerializationInfo .All conversions are done by the IFormatterConverter associated with this SerializationInfo.