CurrencyWrapper 建構函式

定義

初始化 CurrencyWrapper 類別的新執行個體。

多載

CurrencyWrapper(Decimal)

使用要被包裝並當做型別 Decimal 封送處理的 VT_CY,初始化 CurrencyWrapper 類別的新執行個體。

CurrencyWrapper(Object)

使用物件 (包含要被包裝並當做型別 Decimal 封送處理的 VT_CY),初始化 CurrencyWrapper 類別的新執行個體。

CurrencyWrapper(Decimal)

使用要被包裝並當做型別 Decimal 封送處理的 VT_CY,初始化 CurrencyWrapper 類別的新執行個體。

public:
 CurrencyWrapper(System::Decimal obj);
public CurrencyWrapper (decimal obj);
new System.Runtime.InteropServices.CurrencyWrapper : decimal -> System.Runtime.InteropServices.CurrencyWrapper
Public Sub New (obj As Decimal)

參數

obj
Decimal

要被包裝並當做 Decimal 封送處理的 VT_CY

適用於

CurrencyWrapper(Object)

使用物件 (包含要被包裝並當做型別 Decimal 封送處理的 VT_CY),初始化 CurrencyWrapper 類別的新執行個體。

public:
 CurrencyWrapper(System::Object ^ obj);
public CurrencyWrapper (object obj);
new System.Runtime.InteropServices.CurrencyWrapper : obj -> System.Runtime.InteropServices.CurrencyWrapper
Public Sub New (obj As Object)

參數

obj
Object

物件,包含要被包裝並當做 Decimal 封送處理的 VT_CY

例外狀況

obj 參數不是 Decimal 型別。

適用於