共用方式為


IntPtr.CreateChecked<TOther>(TOther) 方法

定義

從值建立目前型別的實例,針對落在目前類型可表示範圍以外的任何值擲回溢位例外狀況。

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static IntPtr CreateChecked(TOther value) = System::Numerics::INumberBase<IntPtr>::CreateChecked;
public static IntPtr CreateChecked<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateChecked : 'Other -> nativeint (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateChecked(Of TOther As INumberBase(Of TOther)) (value As TOther) As IntPtr

類型參數

TOther

value的類型。

參數

value
TOther

用來建立 TSelf實例的值。

傳回

IntPtr

nativeint

value建立之 TSelf 的實例。

實作

適用於