AttachmentBase コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > AttachmentBase コンストラクタの意味・解説 

AttachmentBase コンストラクタ (Stream)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

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

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

Protected Sub New ( _
    contentStream As Stream _
)
Dim contentStream As Stream

Dim instance As New AttachmentBase(contentStream)
protected AttachmentBase (
    Stream contentStream
)
protected:
AttachmentBase (
    Stream^ contentStream
)
protected AttachmentBase (
    Stream contentStream
)
protected function AttachmentBase (
    contentStream : Stream
)

パラメータ

contentStream

この添付内容格納しているストリーム

例外例外
例外種類条件

ArgumentNullException

contentStreamnull 参照 (Visual Basic では Nothing) です。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AttachmentBase クラス
AttachmentBase メンバ
System.Net.Mail 名前空間

AttachmentBase コンストラクタ (String)


AttachmentBase コンストラクタ (Stream, ContentType)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定した Stream および ContentType使用して、AttachmentBase をインスタンス化ます。

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

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
)

パラメータ

contentStream

この添付内容格納しているストリーム

contentType

コンテンツの型。

例外例外
例外種類条件

ArgumentNullException

contentStreamnull 参照 (Visual Basic では Nothing) です。

FormatException

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AttachmentBase クラス
AttachmentBase メンバ
System.Net.Mail 名前空間

AttachmentBase コンストラクタ (Stream, String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定した Stream およびメディア タイプ使用して、AttachmentBase をインスタンス化ます。

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

Protected Sub New ( _
    contentStream As Stream, _
    mediaType As String _
)
Dim contentStream As Stream
Dim mediaType As String

Dim instance As New AttachmentBase(contentStream,
 mediaType)
protected AttachmentBase (
    Stream contentStream,
    string mediaType
)
protected:
AttachmentBase (
    Stream^ contentStream, 
    String^ mediaType
)
protected AttachmentBase (
    Stream contentStream, 
    String mediaType
)
protected function AttachmentBase (
    contentStream : Stream, 
    mediaType : String
)

パラメータ

contentStream

この添付内容格納しているストリーム

mediaType

コンテンツMIME メディア タイプ

例外例外
例外種類条件

ArgumentNullException

contentStreamnull 参照 (Visual Basic では Nothing) です。

FormatException

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AttachmentBase クラス
AttachmentBase メンバ
System.Net.Mail 名前空間

AttachmentBase コンストラクタ (String, ContentType)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

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

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

例外例外
例外種類条件

ArgumentNullException

fileNamenull 参照 (Visual Basic では Nothing) です。

FormatException

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AttachmentBase クラス
AttachmentBase メンバ
System.Net.Mail 名前空間

AttachmentBase コンストラクタ (String, String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定したファイル名およびメディア タイプ使用して、AttachmentBase をインスタンス化ます。

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

例外例外
例外種類条件

ArgumentNullException

fileNamenull 参照 (Visual Basic では Nothing) です。

FormatException

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AttachmentBase クラス
AttachmentBase メンバ
System.Net.Mail 名前空間

AttachmentBase コンストラクタ

新しい AttachmentBase をインスタンス化ます。
オーバーロードの一覧オーバーロードの一覧

参照参照

関連項目

AttachmentBase クラス
AttachmentBase メンバ
System.Net.Mail 名前空間



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

辞書ショートカット

すべての辞書の索引

「AttachmentBase コンストラクタ」の関連用語

AttachmentBase コンストラクタのお隣キーワード
検索ランキング

   

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



AttachmentBase コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS