ContentDisposition.Inline プロパティ
アセンブリ: System (system.dll 内)

Dim instance As ContentDisposition Dim value As Boolean value = instance.Inline instance.Inline = value
/** @property */ public boolean get_Inline () /** @property */ public void set_Inline (boolean value)
添付の内容が電子メール本文の一部としてインラインに表示される場合は true。それ以外の場合は false。

Inline プロパティは、電子メール メッセージと共に送信される Content-Disposition ヘッダー内に配置タイプを設定します。配置タイプは、電子メールを表示するソフトウェアによって使用され、電子メールの添付データを表示する正しい方法を決定します。配置タイプが DispositionTypeNames.Inline の添付データは、通常、ユーザーが電子メールを開いたときに表示されます。配置タイプが DispositionTypeNames.Attachment の添付データは、通常、ユーザーが添付データを表すアイコンをクリックするなどの追加アクションを実行するまで開きません。
Content-Disposition ヘッダーは、RFC 2183 (http://www.ietf.org を参照) に記述されています。

public static void CreateMessageInlineAttachment(string server, string textMessage) { // Create a message and set up the recipients. MailMessage message = new MailMessage( "jane@contoso.com", "ben@contoso.com", "An inline text message for you.", "Message: "); // Attach the message string to this e-mail message. Attachment data = new Attachment(textMessage, MediaTypeNames.Text.Plain); // Send textMessage as part of the e-mail body. message.Attachments.Add(data); ContentDisposition disposition = data.ContentDisposition; disposition.Inline = true; //Send the message. // Include credentials if the server requires them. SmtpClient client = new SmtpClient(server); client.Credentials = CredentialCache.DefaultNetworkCredentials; client.Send(message); data.Dispose(); }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からContentDisposition.Inline プロパティを検索する場合は、下記のリンクをクリックしてください。

- ContentDisposition.Inline プロパティのページへのリンク