DispositionTypeNames.Inline フィールド
メモ : このフィールドは、.NET Framework version 2.0 で新しく追加されたものです。
添付データが、電子メールのメッセージ本文の一部として表示されることを指定します。
名前空間: System.Net.Mime
アセンブリ: System (system.dll 内)
構文

public static void CreateMessageInlineAttachment3(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.DispositionType = DispositionTypeNames.Inline; //Send the message. // Include credentials if the server requires them. SmtpClient client = new SmtpClient(server); client.Credentials = (ICredentialsByHost)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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- DispositionTypeNames.Inline フィールドのページへのリンク