Message.BodyType プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Message.BodyType プロパティの意味・解説 

Message.BodyType プロパティ

メッセージ本文含まれるデータ型取得または設定します

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

Dim instance As Message
Dim value As Integer

value = instance.BodyType

instance.BodyType = value
public int BodyType { get;
 set; }
/** @property */
public int get_BodyType ()

/** @property */
public void set_BodyType (int
 value)

プロパティ
文字列日付通貨数値など、メッセージ本文実際の型。

例外例外
解説解説

メッセージ キューは、本文内容オブジェクトまたはシリアル化されたストリームとして認識しますBodyType プロパティは、メッセージBody プロパティ内のオブジェクトの型を示します

XmlMessageFormatter は、メッセージ本文内でネイティブな型とオブジェクトバインド実行しますXmlMessageFormatter使用した場合は、フォーマッタによって BodyType プロパティ設定されます。

その他のフォーマッタでは、次の C# コードに示すバインド機能用意できます

message.Formatter = new ActiveXMessageFormatter();
object myObject message.Body;
if (myObject is string) {
}
if (myObject is int) {
}
if (myObject is float) {
}
使用例使用例

メッセージBodyType プロパティの値を表示するコード例次に示します

// Display the value of the message's BodyType property.
Console.WriteLine("Message.BodyType: {0}",
    orderMessage.BodyType.ToString());
// Display the value of the message's BodyType property.
Console::WriteLine("Message.BodyType: {0}",
    orderMessage->BodyType.ToString());
// Display the value of the message's BodyType property.
Console.WriteLine("Message.BodyType: {0}", 
    System.Convert.ToString(orderMessage.get_BodyType()));
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からMessage.BodyType プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からMessage.BodyType プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からMessage.BodyType プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

Message.BodyType プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Message.BodyType プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS