AlternateView.CreateAlternateViewFromString メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Stringで指定されたコンテンツを使用して、電子メール メッセージのAlternateViewを作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| CreateAlternateViewFromString(String) |
Stringで指定されたコンテンツを使用して、電子メール メッセージのAlternateViewを作成します。 |
| CreateAlternateViewFromString(String, ContentType) |
Stringで指定されたコンテンツとコンテンツの指定された MIME メディア タイプを使用して、電子メール メッセージのAlternateViewを作成します。 |
| CreateAlternateViewFromString(String, Encoding, String) |
Stringで指定されたコンテンツ、指定したテキスト エンコード、およびコンテンツの MIME メディアの種類を使用して、電子メール メッセージのAlternateViewを作成します。 |
CreateAlternateViewFromString(String)
Stringで指定されたコンテンツを使用して、電子メール メッセージのAlternateViewを作成します。
public:
static System::Net::Mail::AlternateView ^ CreateAlternateViewFromString(System::String ^ content);
public static System.Net.Mail.AlternateView CreateAlternateViewFromString(string content);
static member CreateAlternateViewFromString : string -> System.Net.Mail.AlternateView
Public Shared Function CreateAlternateViewFromString (content As String) As AlternateView
パラメーター
返品
電子メール メッセージの代替ビューを表す AlternateView オブジェクト。
例外
content が null です。
注釈
既定のメディアの種類はプレーン テキストで、既定のエンコードは ASCII です。
適用対象
CreateAlternateViewFromString(String, ContentType)
Stringで指定されたコンテンツとコンテンツの指定された MIME メディア タイプを使用して、電子メール メッセージのAlternateViewを作成します。
public:
static System::Net::Mail::AlternateView ^ CreateAlternateViewFromString(System::String ^ content, System::Net::Mime::ContentType ^ contentType);
public static System.Net.Mail.AlternateView CreateAlternateViewFromString(string content, System.Net.Mime.ContentType contentType);
static member CreateAlternateViewFromString : string * System.Net.Mime.ContentType -> System.Net.Mail.AlternateView
Public Shared Function CreateAlternateViewFromString (content As String, contentType As ContentType) As AlternateView
パラメーター
- contentType
- ContentType
ContentType内のデータを記述するcontent。
返品
電子メール メッセージの代替ビューを表す AlternateView オブジェクト。
例外
content が null です。
適用対象
CreateAlternateViewFromString(String, Encoding, String)
Stringで指定されたコンテンツ、指定したテキスト エンコード、およびコンテンツの MIME メディアの種類を使用して、電子メール メッセージのAlternateViewを作成します。
public:
static System::Net::Mail::AlternateView ^ CreateAlternateViewFromString(System::String ^ content, System::Text::Encoding ^ contentEncoding, System::String ^ mediaType);
public static System.Net.Mail.AlternateView CreateAlternateViewFromString(string content, System.Text.Encoding contentEncoding, string mediaType);
static member CreateAlternateViewFromString : string * System.Text.Encoding * string -> System.Net.Mail.AlternateView
Public Shared Function CreateAlternateViewFromString (content As String, contentEncoding As Encoding, mediaType As String) As AlternateView
パラメーター
- mediaType
- String
コンテンツの MIME メディアの種類。
返品
電子メール メッセージの代替ビューを表す AlternateView オブジェクト。
例外
content が null です。