共用方式為


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)

來源:
Attachment.cs
來源:
Attachment.cs
來源:
Attachment.cs

使用指定的 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

包含此附件內容的數據流。

例外狀況

contentStream null

適用於

AttachmentBase(String)

來源:
Attachment.cs
來源:
Attachment.cs
來源:
Attachment.cs

使用指定的檔名具現化 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

包含此附件內容的檔名。

例外狀況

fileName null

適用於

AttachmentBase(Stream, ContentType)

來源:
Attachment.cs
來源:
Attachment.cs
來源:
Attachment.cs

使用指定的 StreamContentType具現化 AttachmentBase

protected:
 AttachmentBase(System::IO::Stream ^ contentStream, System::Net::Mime::ContentType ^ contentType);
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

內容的型別。

例外狀況

contentStream null

contentType 不是有效的值。

適用於

AttachmentBase(Stream, String)

來源:
Attachment.cs
來源:
Attachment.cs
來源:
Attachment.cs

具現化具有指定 Stream 和媒體類型的 AttachmentBase

protected:
 AttachmentBase(System::IO::Stream ^ contentStream, System::String ^ mediaType);
protected AttachmentBase (System.IO.Stream contentStream, 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 媒體類型。

例外狀況

contentStream null

mediaType 不是有效的值。

適用於

AttachmentBase(String, ContentType)

來源:
Attachment.cs
來源:
Attachment.cs
來源:
Attachment.cs

使用指定的檔名和內容類型具現化 AttachmentBase

protected:
 AttachmentBase(System::String ^ fileName, System::Net::Mime::ContentType ^ contentType);
protected AttachmentBase (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

內容的型別。

例外狀況

fileName null

contentType 不是有效的值。

適用於

AttachmentBase(String, String)

來源:
Attachment.cs
來源:
Attachment.cs
來源:
Attachment.cs

使用指定的檔名和媒體類型具現化 AttachmentBase

protected:
 AttachmentBase(System::String ^ fileName, System::String ^ mediaType);
protected AttachmentBase (string fileName, 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 媒體類型。

例外狀況

fileName null

mediaType 不是有效的值。

適用於