CurrencyWrapper CurrencyWrapper CurrencyWrapper CurrencyWrapper Class



此 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
type CurrencyWrapper = class
Public NotInheritable Class CurrencyWrapper


控制被包装的对象作为变量传递时如何封送。Controls how the wrapped object is marshaled when passed as a Variant. 包装DecimalCurrencyWrapper以将其作为封送VT_CYWrap a Decimal in a CurrencyWrapper to have it marshaled as a VT_CY.


CurrencyWrapper(Decimal) CurrencyWrapper(Decimal) CurrencyWrapper(Decimal) CurrencyWrapper(Decimal)

初始化的新实例CurrencyWrapper类的Decimal要包装并作为类型封送VT_CYInitializes a new instance of the CurrencyWrapper class with the Decimal to be wrapped and marshaled as type VT_CY.

CurrencyWrapper(Object) CurrencyWrapper(Object) CurrencyWrapper(Object) CurrencyWrapper(Object)

初始化的新实例CurrencyWrapper类的对象,其中包含Decimal要包装并作为类型封送VT_CYInitializes a new instance of the CurrencyWrapper class with the object containing the Decimal to be wrapped and marshaled as type VT_CY.


WrappedObject WrappedObject WrappedObject WrappedObject

获取作为类型封送的包装的对象VT_CYGets the wrapped object to be marshaled as type VT_CY.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)