Bahasa

AttachmentBase Konstruktor

Definisi

Membuat instans baru AttachmentBase.

Overload

Nama Deskripsi
AttachmentBase(Stream)

Membuat instans AttachmentBase dengan yang ditentukan Stream.

AttachmentBase(String)

Membuat instans AttachmentBase dengan nama file yang ditentukan.

AttachmentBase(Stream, ContentType)

Membuat instans AttachmentBase dengan yang ditentukan Stream dan ContentType.

AttachmentBase(Stream, String)

Membuat instans AttachmentBase dengan jenis yang ditentukan Stream dan media.

AttachmentBase(String, ContentType)

Membuat instans AttachmentBase dengan nama file dan jenis konten yang ditentukan.

AttachmentBase(String, String)

Membuat instans AttachmentBase dengan nama file dan jenis media yang ditentukan.

AttachmentBase(Stream)

Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs

Membuat instans AttachmentBase dengan yang ditentukan Stream.

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)

Parameter

contentStream
Stream

Aliran yang berisi konten untuk lampiran ini.

Pengecualian

contentStream adalah null.

Berlaku untuk

AttachmentBase(String)

Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs

Membuat instans AttachmentBase dengan nama file yang ditentukan.

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)

Parameter

fileName
String

Nama file yang menyimpan isi untuk lampiran ini.

Pengecualian

fileName adalah null.

Berlaku untuk

AttachmentBase(Stream, ContentType)

Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs

Membuat instans AttachmentBase dengan yang ditentukan Stream dan ContentType.

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)

Parameter

contentStream
Stream

Aliran yang berisi konten untuk lampiran ini.

contentType
ContentType

Jenis konten.

Pengecualian

contentStream adalah null.

contentType bukan nilai yang valid.

Berlaku untuk

AttachmentBase(Stream, String)

Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs

Membuat instans AttachmentBase dengan jenis yang ditentukan Stream dan media.

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)

Parameter

contentStream
Stream

Aliran yang berisi konten untuk lampiran ini.

mediaType
String

Jenis media MIME isi.

Pengecualian

contentStream adalah null.

mediaType bukan nilai yang valid.

Berlaku untuk

AttachmentBase(String, ContentType)

Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs

Membuat instans AttachmentBase dengan nama file dan jenis konten yang ditentukan.

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)

Parameter

fileName
String

Nama file yang menyimpan isi untuk lampiran ini.

contentType
ContentType

Jenis konten.

Pengecualian

fileName adalah null.

contentType bukan nilai yang valid.

Berlaku untuk

AttachmentBase(String, String)

Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs
Sumber:
Attachment.cs

Membuat instans AttachmentBase dengan nama file dan jenis media yang ditentukan.

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)

Parameter

fileName
String

Nama file yang menyimpan isi untuk lampiran ini.

mediaType
String

Jenis media MIME isi.

Pengecualian

fileName adalah null.

mediaType bukan nilai yang valid.

Berlaku untuk