MailTransportBindingElementBase.MessageContainerType プロパティ
[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]
メッセージの送信方法を決定する列挙値を取得または設定します。
名前空間: Microsoft.ServiceModel.Channels.Mail
アセンブリ: Microsoft.ServiceModel.Channels.Mail (Microsoft.ServiceModel.Channels.Mail.dll 内)
構文
'宣言
Public Property MessageContainerType As MessageContainerType
Get
Set
'使用
Dim instance As MailTransportBindingElementBase
Dim value As MessageContainerType
value = instance.MessageContainerType
instance.MessageContainerType = value
public MessageContainerType MessageContainerType { get; set; }
public:
property MessageContainerType MessageContainerType {
MessageContainerType get ();
void set (MessageContainerType value);
}
member MessageContainerType : MessageContainerType with get, set
プロパティ値
型 : Microsoft.ServiceModel.Channels.Mail.MessageContainerType
メッセージの送信方法を指定する値。
解説
MessageContainerType プロパティを Default に設定すると、メッセージをメッセージ本文で送信するか、添付ファイルとして送信するかの判断は、MinimumAttachmentSize プロパティに基づいて行われます。
例
MessageContainerType プロパティを使用する方法の例を次に示します。
' Instantiate a TextMessageEncodingBindingElement or' a custom encoding binding element. If you use a custom encoding' binding element, messages must be sent as attachments.
msgEncodingBindingElement = New CustomMessageEncodingBindingElement()
mailTransportBindingElement = New WindowsMobileMailTransportBindingElement()
mailTransportBindingElement.MessageContainerType = MessageContainerType.Attachment
// Instantiate a TextMessageEncodingBindingElement or// a custom encoding binding element. If you use a custom encoding// binding element, messages must be sent as attachments.
msgEncodingBindingElement = new CustomMessageEncodingBindingElement();
mailTransportBindingElement = new WindowsMobileMailTransportBindingElement();
mailTransportBindingElement.MessageContainerType = MessageContainerType.Attachment;
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分的に信頼される側のコードからライブラリの使用」を参照してください。
プラットフォーム
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET フレームワークのシステム要件」を参照してください。
バージョン情報
.NET Compact Framework
サポート対象 : 3.5
参照
参照
MailTransportBindingElementBase クラス