NFloat.CreateChecked<TOther>(TOther) 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.
Crée une instance du type actuel à partir d’une valeur, en levant une exception de dépassement de capacité pour toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.
public:
generic <typename TOther>
where TOther : System::Numerics::INumberBase<TOther> static System::Runtime::InteropServices::NFloat CreateChecked(TOther value) = System::Numerics::INumberBase<System::Runtime::InteropServices::NFloat>::CreateChecked;
public static System.Runtime.InteropServices.NFloat CreateChecked<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateChecked : 'Other -> System.Runtime.InteropServices.NFloat (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateChecked(Of TOther As INumberBase(Of TOther)) (value As TOther) As NFloat
Paramètres de type
- TOther
Type d'élément value
.
Paramètres
- value
- TOther
Valeur utilisée pour créer l’instance de TSelf
.
Retours
Instance de TSelf
créée à partir de value
.
Implémente
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour