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

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

ContentDisposition.Inline プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

電子メール添付データ配置タイプ (インラインまたは添付) を決定する Boolean 値を取得または設定します

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

解説解説
使用例使用例

このプロパティの値を設定する方法次のコード例示します

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();
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ContentDisposition クラス
ContentDisposition メンバ
System.Net.Mime 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS