SerializationInfo.GetInt64(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère une valeur entière signée 64 bits à partir du SerializationInfo magasin.
public:
long GetInt64(System::String ^ name);
public long GetInt64(string name);
member this.GetInt64 : string -> int64
Public Function GetInt64 (name As String) As Long
Paramètres
- name
- String
Nom associé à la valeur à récupérer.
Retours
Entier signé 64 bits associé à name.
Exceptions
name a la valeur null.
La valeur associée name ne peut pas être convertie en entier signé 64 bits.
Un élément portant le nom spécifié est introuvable dans l’instance actuelle.
Remarques
Si la valeur est un entier signé 64 bits ou peut être convertie en un entier signé, cette valeur est retournée ; sinon, un InvalidCastException est levée. Toutes les conversions sont effectuées par l’associé IFormatterConverter à ce SerializationInfo.