UIntPtr.INumberBase<UIntPtr>.TryConvertToChecked<TOther> メソッド

定義

現在の型のインスタンスを別の型に変換しようとします。現在の型の表現可能な範囲外の値に対してオーバーフロー例外がスローされます。

generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool System.Numerics.INumberBase<nuint>.TryConvertToChecked(UIntPtr value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<UIntPtr>::TryConvertToChecked;
static bool INumberBase<UIntPtr>.TryConvertToChecked<TOther> (UIntPtr value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<nuint>.TryConvertToChecked : unativeint * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToChecked(Of TOther As INumberBase(Of TOther)) (value As UIntPtr, ByRef result As TOther) As Boolean Implements INumberBase(Of UIntPtr).TryConvertToChecked

型パラメーター

TOther

変換先の value 型。

パラメーター

value
UIntPtr

unativeint

のインスタンス TOtherを作成するために使用される値。

result
TOther

このメソッドから戻るときに、 からvalue変換された のTOtherインスタンスが格納されます。

戻り値

false がサポートされていない場合 TOther は 。それ以外の場合 trueは 。

実装

適用対象