AttachmentBase コンストラクター

定義

新しい AttachmentBaseをインスタンス化します。

オーバーロード

名前 説明
AttachmentBase(Stream)

指定したStreamを使用してAttachmentBaseをインスタンス化します。

AttachmentBase(String)

指定したファイル名を使用して AttachmentBase をインスタンス化します。

AttachmentBase(Stream, ContentType)

指定したStreamContentTypeを使用してAttachmentBaseをインスタンス化します。

AttachmentBase(Stream, String)

指定したStreamとメディアの種類でAttachmentBaseをインスタンス化します。

AttachmentBase(String, ContentType)

指定したファイル名とコンテンツ タイプを使用して AttachmentBase をインスタンス化します。

AttachmentBase(String, String)

指定したファイル名とメディアの種類を使用して AttachmentBase をインスタンス化します。

AttachmentBase(Stream)

指定したStreamを使用してAttachmentBaseをインスタンス化します。

protected:
 AttachmentBase(System::IO::Stream ^ contentStream);
protected AttachmentBase(System.IO.Stream contentStream);
new System.Net.Mail.AttachmentBase : System.IO.Stream -> System.Net.Mail.AttachmentBase
Protected Sub New (contentStream As Stream)

パラメーター

contentStream
Stream

この添付ファイルのコンテンツを含むストリーム。

例外

contentStreamnullです。

適用対象

AttachmentBase(String)

指定したファイル名を使用して AttachmentBase をインスタンス化します。

protected:
 AttachmentBase(System::String ^ fileName);
protected AttachmentBase(string fileName);
new System.Net.Mail.AttachmentBase : string -> System.Net.Mail.AttachmentBase
Protected Sub New (fileName As String)

パラメーター

fileName
String

この添付ファイルのコンテンツを保持するファイル名。

例外

fileNamenullです。

適用対象

AttachmentBase(Stream, ContentType)

指定したStreamContentTypeを使用してAttachmentBaseをインスタンス化します。

protected:
 AttachmentBase(System::IO::Stream ^ contentStream, System::Net::Mime::ContentType ^ contentType);
protected AttachmentBase(System.IO.Stream contentStream, System.Net.Mime.ContentType contentType);
new System.Net.Mail.AttachmentBase : System.IO.Stream * System.Net.Mime.ContentType -> System.Net.Mail.AttachmentBase
Protected Sub New (contentStream As Stream, contentType As ContentType)

パラメーター

contentStream
Stream

この添付ファイルのコンテンツを含むストリーム。

contentType
ContentType

コンテンツの種類。

例外

contentStreamnullです。

contentType は有効な値ではありません。

適用対象

AttachmentBase(Stream, String)

指定したStreamとメディアの種類でAttachmentBaseをインスタンス化します。

protected:
 AttachmentBase(System::IO::Stream ^ contentStream, System::String ^ mediaType);
protected AttachmentBase(System.IO.Stream contentStream, string mediaType);
new System.Net.Mail.AttachmentBase : System.IO.Stream * string -> System.Net.Mail.AttachmentBase
Protected Sub New (contentStream As Stream, mediaType As String)

パラメーター

contentStream
Stream

この添付ファイルのコンテンツを含むストリーム。

mediaType
String

コンテンツの MIME メディアの種類。

例外

contentStreamnullです。

mediaType は有効な値ではありません。

適用対象

AttachmentBase(String, ContentType)

指定したファイル名とコンテンツ タイプを使用して AttachmentBase をインスタンス化します。

protected:
 AttachmentBase(System::String ^ fileName, System::Net::Mime::ContentType ^ contentType);
protected AttachmentBase(string fileName, System.Net.Mime.ContentType contentType);
new System.Net.Mail.AttachmentBase : string * System.Net.Mime.ContentType -> System.Net.Mail.AttachmentBase
Protected Sub New (fileName As String, contentType As ContentType)

パラメーター

fileName
String

この添付ファイルのコンテンツを保持するファイル名。

contentType
ContentType

コンテンツの種類。

例外

fileNamenullです。

contentType は有効な値ではありません。

適用対象

AttachmentBase(String, String)

指定したファイル名とメディアの種類を使用して AttachmentBase をインスタンス化します。

protected:
 AttachmentBase(System::String ^ fileName, System::String ^ mediaType);
protected AttachmentBase(string fileName, string mediaType);
new System.Net.Mail.AttachmentBase : string * string -> System.Net.Mail.AttachmentBase
Protected Sub New (fileName As String, mediaType As String)

パラメーター

fileName
String

この添付ファイルのコンテンツを保持するファイル名。

mediaType
String

コンテンツの MIME メディアの種類。

例外

fileNamenullです。

mediaType は有効な値ではありません。

適用対象