BinaryMessageFormatter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 BinaryMessageFormatter 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| BinaryMessageFormatter() |
初始化類別的新實例 BinaryMessageFormatter ,但未指定型別樣式或頂端物件組合風格。 |
| BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle) |
初始化該類別的新實例 BinaryMessageFormatter ,指定根物件的格式與型別描述。 |
備註
這很重要
從這個類別使用不受信任的數據呼叫方法構成安全性風險。 僅使用信任的數據呼叫來自這個類別的方法。 如需詳細資訊,請參閱 驗證所有輸入。
BinaryMessageFormatter()
初始化類別的新實例 BinaryMessageFormatter ,但未指定型別樣式或頂端物件組合風格。
public:
BinaryMessageFormatter();
public BinaryMessageFormatter();
Public Sub New ()
備註
在使用該類別實例BinaryMessageFormatter序列化並傳送訊息之前,必須指定屬性(定義圖形中根物件如何排列)和屬性(定義物件型別描述的佈局方式)的TypeFormat值TopObjectFormat。
適用於
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
決定序列化串流中型別描述的排列方式。