BinaryMessageFormatter コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
BinaryMessageFormatter クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| BinaryMessageFormatter() |
型スタイルまたは最上位オブジェクト アセンブリ スタイルを指定せずに、 BinaryMessageFormatter クラスの新しいインスタンスを初期化します。 |
| BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle) |
ルート オブジェクトの形式と型の説明を指定して、 BinaryMessageFormatter クラスの新しいインスタンスを初期化します。 |
注釈
Important
信頼されていないデータを使用してこのクラスからメソッドを呼び出すことは、セキュリティ上のリスクです。 このクラスのメソッドは、信頼できるデータでのみ呼び出します。 詳細については、「すべての入力を検証する」を参照してください。
BinaryMessageFormatter()
型スタイルまたは最上位オブジェクト アセンブリ スタイルを指定せずに、 BinaryMessageFormatter クラスの新しいインスタンスを初期化します。
public:
BinaryMessageFormatter();
public BinaryMessageFormatter();
Public Sub New ()
注釈
BinaryMessageFormatter クラスのインスタンスを使用してメッセージをシリアル化および送信する前に、TopObjectFormat プロパティ (グラフ内のルート オブジェクトのレイアウト方法を定義する) とTypeFormat プロパティ (オブジェクト型の説明のレイアウト方法を定義する) の値を指定する必要があります。
適用対象
BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle)
ルート オブジェクトの形式と型の説明を指定して、 BinaryMessageFormatter クラスの新しいインスタンスを初期化します。
public:
BinaryMessageFormatter(System::Runtime::Serialization::Formatters::FormatterAssemblyStyle topObjectFormat, System::Runtime::Serialization::Formatters::FormatterTypeStyle typeFormat);
public BinaryMessageFormatter(System.Runtime.Serialization.Formatters.FormatterAssemblyStyle topObjectFormat, System.Runtime.Serialization.Formatters.FormatterTypeStyle typeFormat);
new System.Messaging.BinaryMessageFormatter : System.Runtime.Serialization.Formatters.FormatterAssemblyStyle * System.Runtime.Serialization.Formatters.FormatterTypeStyle -> System.Messaging.BinaryMessageFormatter
Public Sub New (topObjectFormat As FormatterAssemblyStyle, typeFormat As FormatterTypeStyle)
パラメーター
- topObjectFormat
- FormatterAssemblyStyle
グラフの最上位 (ルート) オブジェクトをシリアル化されたストリームに配置する方法を決定します。
- typeFormat
- FormatterTypeStyle
シリアル化されたストリームで型の説明をレイアウトする方法を決定します。