CurrencyWrapper クラス

マーシャラが VT_CY としてマーシャリングする必要があるオブジェクトをラップします。

この型のすべてのメンバの一覧については、CurrencyWrapper メンバ を参照してください。

System.Object
   System.Runtime.InteropServices.CurrencyWrapper

NotInheritable Public Class CurrencyWrapper
[C#]
public sealed class CurrencyWrapper
[C++]
public __gc __sealed class CurrencyWrapper
[JScript]
public class CurrencyWrapper

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

ラップされたオブジェクトをバリアントとして渡す場合に、そのオブジェクトをマーシャリングする方法を制御します。Decimal を VT_CY としてマーシャリングするために、 CurrencyWrapper 内にラップします。

必要条件

名前空間: System.Runtime.InteropServices

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

アセンブリ: Mscorlib (Mscorlib.dll 内)

参照

CurrencyWrapper メンバ | System.Runtime.InteropServices 名前空間