語言

CurrencyWrapper 類別

定義

警告

CurrencyWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.

包裹物件,集數者應該以 VT_CY.

public ref class CurrencyWrapper sealed
[System.Obsolete("CurrencyWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")]
public sealed class CurrencyWrapper
public sealed class CurrencyWrapper
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class CurrencyWrapper
[<System.Obsolete("CurrencyWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")>]
type CurrencyWrapper = class
type CurrencyWrapper = class
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type CurrencyWrapper = class
Public NotInheritable Class CurrencyWrapper
繼承
CurrencyWrapper
屬性

備註

控制包裹物件作為變體傳遞時的封裝方式。 將 a Decimal 包裹在 a CurrencyWrapper 中以便作為 .VT_CY

建構函式

名稱 Description
CurrencyWrapper(Decimal)
已淘汰.

初始化一個新的類別實例 CurrencyWrapper ,將 Decimal 包裹並編組為型別 VT_CY。

CurrencyWrapper(Object)
已淘汰.

初始化一個新的類別實例 CurrencyWrapper ,包含包含要包裝並封存的物件 Decimal ,作為型別 VT_CY。

屬性

名稱 Description
WrappedObject
已淘汰.

讓包裹物件被 marshale 為類型 VT_CY。

方法

名稱 Description
Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設哈希函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()
已淘汰.

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於