次の方法で共有


BinaryMessageFormatter コンストラクタ (FormatterAssemblyStyle, FormatterTypeStyle)

BinaryMessageFormatter クラスの新しいインスタンスを初期化し、ルート オブジェクトと型の記述の形式を指定します。

名前空間: System.Messaging
アセンブリ: System.Messaging (system.messaging.dll 内)

構文

'宣言
Public Sub New ( _
    topObjectFormat As FormatterAssemblyStyle, _
    typeFormat As FormatterTypeStyle _
)
'使用
Dim topObjectFormat As FormatterAssemblyStyle
Dim typeFormat As FormatterTypeStyle

Dim instance As New BinaryMessageFormatter(topObjectFormat, typeFormat)
public BinaryMessageFormatter (
    FormatterAssemblyStyle topObjectFormat,
    FormatterTypeStyle typeFormat
)
public:
BinaryMessageFormatter (
    FormatterAssemblyStyle topObjectFormat, 
    FormatterTypeStyle typeFormat
)
public BinaryMessageFormatter (
    FormatterAssemblyStyle topObjectFormat, 
    FormatterTypeStyle typeFormat
)
public function BinaryMessageFormatter (
    topObjectFormat : FormatterAssemblyStyle, 
    typeFormat : FormatterTypeStyle
)

パラメータ

  • topObjectFormat
    グラフのトップ (ルート) オブジェクトをシリアル化されたストリームにどのようにレイアウトするかを確認します。
  • typeFormat
    型の記述を、シリアル化されたストリームにどのようにレイアウトするかを確認します。

.NET Framework のセキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「」を参照してください。

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

BinaryMessageFormatter クラス
BinaryMessageFormatter メンバ
System.Messaging 名前空間