Decimal.TryGetBits(Decimal, Span<Int32>, Int32) 方法

定義

嘗試將 Decimal 其所指定執行個體值轉換為與其相等的二進位表示。

public:
 static bool TryGetBits(System::Decimal d, Span<int> destination, [Runtime::InteropServices::Out] int % valuesWritten);
public static bool TryGetBits (decimal d, Span<int> destination, out int valuesWritten);
static member TryGetBits : decimal * Span<int> * int -> bool
Public Shared Function TryGetBits (d As Decimal, destination As Span(Of Integer), ByRef valuesWritten As Integer) As Boolean

參數

d
Decimal

要進行轉換的值。

destination
Span<Int32>

要在其中儲存二進位標記法的範圍。

valuesWritten
Int32

當這個方法傳回時,包含寫入目的地的整數數目。

傳回

如果十進位的二進位表示已寫入目的地,則為 true如果目的地不夠長,則為 false

適用於