AttachmentBase クラス
アセンブリ: System (system.dll 内)
構文Public MustInherit Class AttachmentBase Implements IDisposable
public abstract class AttachmentBase : IDisposable
public abstract class AttachmentBase implements IDisposable
public abstract class AttachmentBase implements IDisposable
継承階層System.Net.Mail.AttachmentBase
System.Net.Mail.AlternateView
System.Net.Mail.Attachment
System.Net.Mail.LinkedResource
スレッド セーフ
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照AttachmentBase コンストラクタ (Stream)
アセンブリ: System (system.dll 内)
構文
例外
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照AttachmentBase コンストラクタ (String)
アセンブリ: System (system.dll 内)
構文
例外
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照AttachmentBase コンストラクタ (Stream, ContentType)
アセンブリ: System (system.dll 内)
構文Protected Sub New ( _ contentStream As Stream, _ contentType As ContentType _ )
Dim contentStream As Stream Dim contentType As ContentType Dim instance As New AttachmentBase(contentStream, contentType)
protected AttachmentBase ( Stream contentStream, ContentType contentType )
protected: AttachmentBase ( Stream^ contentStream, ContentType^ contentType )
protected AttachmentBase ( Stream contentStream, ContentType contentType )
protected function AttachmentBase ( contentStream : Stream, contentType : ContentType )
例外| 例外の種類 | 条件 |
|---|---|
ArgumentNullException | contentStream が null 参照 (Visual Basic では Nothing) です。 |
FormatException | contentType が有効な値ではありません。 |
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照AttachmentBase コンストラクタ (Stream, String)
アセンブリ: System (system.dll 内)
構文Dim contentStream As Stream Dim mediaType As String Dim instance As New AttachmentBase(contentStream, mediaType)
例外
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照AttachmentBase コンストラクタ (String, ContentType)
アセンブリ: System (system.dll 内)
構文Protected Sub New ( _ fileName As String, _ contentType As ContentType _ )
Dim fileName As String Dim contentType As ContentType Dim instance As New AttachmentBase(fileName, contentType)
protected AttachmentBase ( string fileName, ContentType contentType )
protected: AttachmentBase ( String^ fileName, ContentType^ contentType )
protected AttachmentBase ( String fileName, ContentType contentType )
protected function AttachmentBase ( fileName : String, contentType : ContentType )
例外| 例外の種類 | 条件 |
|---|---|
ArgumentNullException | fileName が null 参照 (Visual Basic では Nothing) です。 |
FormatException | contentType が有効な値ではありません。 |
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照AttachmentBase コンストラクタ (String, String)
アセンブリ: System (system.dll 内)
構文Dim fileName As String Dim mediaType As String Dim instance As New AttachmentBase(fileName, mediaType)
例外
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照AttachmentBase コンストラクタ
オーバーロードの一覧| 名前 | 説明 |
|---|---|
| AttachmentBase (Stream) | 指定した Stream を使用して AttachmentBase をインスタンス化します。 |
| AttachmentBase (String) | 指定したファイル名を使用して、AttachmentBase をインスタンス化します。 |
| AttachmentBase (Stream, ContentType) | 指定した Stream および ContentType を使用して、AttachmentBase をインスタンス化します。 |
| AttachmentBase (Stream, String) | 指定した Stream およびメディア タイプを使用して、AttachmentBase をインスタンス化します。 |
| AttachmentBase (String, ContentType) | 指定したファイル名およびコンテンツ タイプを使用して、AttachmentBase をインスタンス化します。 |
| AttachmentBase (String, String) | 指定したファイル名およびメディア タイプを使用して、AttachmentBase をインスタンス化します。 |
参照AttachmentBase プロパティ
パブリック プロパティ| 名前 | 説明 | |
|---|---|---|
| ContentId | この添付データの MIME コンテンツ ID を取得または設定します。 |
| ContentStream | この添付データのコンテンツ ストリームを取得します。 |
| ContentType | この添付データのコンテンツ タイプを取得します。 |
| TransferEncoding | この添付データのエンコーディングを取得または設定します。 |
参照AttachmentBase メソッド
パブリック メソッド| 名前 | 説明 | |
|---|---|---|
| Dispose | オーバーロードされます。 AttachmentBase によって使用されているリソースを解放します。 |
| Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
| GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
| GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
| ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
| ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |
プロテクト メソッド| 名前 | 説明 | |
|---|---|---|
| Dispose | オーバーロードされます。 AttachmentBase によって使用されているリソースを解放します。 |
| Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
| MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
参照AttachmentBase メンバ
電子メールの添付データを表す基本クラス。Attachment、Alternateview、および LinkedResource の各クラスは、このクラスから派生します。
AttachmentBase データ型で公開されるメンバを以下の表に示します。
プロテクト コンストラクタ
パブリック プロパティ| 名前 | 説明 | |
|---|---|---|
| ContentId | この添付データの MIME コンテンツ ID を取得または設定します。 |
| ContentStream | この添付データのコンテンツ ストリームを取得します。 |
| ContentType | この添付データのコンテンツ タイプを取得します。 |
| TransferEncoding | この添付データのエンコーディングを取得または設定します。 |
パブリック メソッド| 名前 | 説明 | |
|---|---|---|
| Dispose | オーバーロードされます。 AttachmentBase によって使用されているリソースを解放します。 |
| Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
| GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
| GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
| ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
| ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |
プロテクト メソッド| 名前 | 説明 | |
|---|---|---|
| Dispose | オーバーロードされます。 AttachmentBase によって使用されているリソースを解放します。 |
| Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
| MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
参照- AttachmentBaseのページへのリンク