CurrencyWrapper 類別

定義

警告

此 API 現已淘汰。

包裝封送處理器應將其當做 VT_CY 來封送處理的物件。Wraps objects the marshaler should marshal as a 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
type CurrencyWrapper = class
Public NotInheritable Class CurrencyWrapper
繼承
CurrencyWrapper
屬性

備註

控制以 Variant 傳遞時,包裝的物件如何封送處理。Controls how the wrapped object is marshaled when passed as a Variant. Decimal 包裝在 CurrencyWrapper 中,以 VT_CY的方式封送處理。Wrap a Decimal in a CurrencyWrapper to have it marshaled as a VT_CY.

建構函式

CurrencyWrapper(Decimal)

使用要被包裝並當做型別 CurrencyWrapper 封送處理的 Decimal,初始化 VT_CY 類別的新執行個體。Initializes a new instance of the CurrencyWrapper class with the Decimal to be wrapped and marshaled as type VT_CY.

CurrencyWrapper(Object)

使用物件 (包含要被包裝並當做型別 CurrencyWrapper 封送處理的 Decimal),初始化 VT_CY 類別的新執行個體。Initializes a new instance of the CurrencyWrapper class with the object containing the Decimal to be wrapped and marshaled as type VT_CY.

屬性

WrappedObject

取得要當做型別 VT_CY 封送處理的已包裝物件。Gets the wrapped object to be marshaled as type VT_CY.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於