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のページへのリンク