AttachmentBase Konstruktory

Definicja

Tworzy wystąpienie nowego AttachmentBaseelementu .

Przeciążenia

AttachmentBase(Stream)

Tworzy wystąpienie elementu AttachmentBase o określonym obiekcie Stream.

AttachmentBase(String)

Tworzy wystąpienie elementu AttachmentBase o określonej nazwie pliku.

AttachmentBase(Stream, ContentType)

Tworzy wystąpienie elementu AttachmentBase o określonej wartości Stream i ContentType.

AttachmentBase(Stream, String)

Tworzy wystąpienie elementu AttachmentBase o określonym Stream typie i nośniku.

AttachmentBase(String, ContentType)

Tworzy wystąpienie elementu AttachmentBase o określonej nazwie pliku i typie zawartości.

AttachmentBase(String, String)

Tworzy wystąpienie elementu AttachmentBase o określonej nazwie pliku i typie nośnika.

AttachmentBase(Stream)

Źródło:
Attachment.cs
Źródło:
Attachment.cs
Źródło:
Attachment.cs

Tworzy wystąpienie elementu AttachmentBase o określonym obiekcie 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)

Parametry

contentStream
Stream

Strumień zawierający zawartość tego załącznika.

Wyjątki

contentStream to null.

Dotyczy

AttachmentBase(String)

Źródło:
Attachment.cs
Źródło:
Attachment.cs
Źródło:
Attachment.cs

Tworzy wystąpienie elementu AttachmentBase o określonej nazwie pliku.

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)

Parametry

fileName
String

Nazwa pliku przechowując zawartość tego załącznika.

Wyjątki

fileName to null.

Dotyczy

AttachmentBase(Stream, ContentType)

Źródło:
Attachment.cs
Źródło:
Attachment.cs
Źródło:
Attachment.cs

Tworzy wystąpienie elementu AttachmentBase o określonej wartości Stream i 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)

Parametry

contentStream
Stream

Strumień zawierający zawartość tego załącznika.

contentType
ContentType

Typ zawartości.

Wyjątki

contentStream to null.

contentType jest nieprawidłową wartością.

Dotyczy

AttachmentBase(Stream, String)

Źródło:
Attachment.cs
Źródło:
Attachment.cs
Źródło:
Attachment.cs

Tworzy wystąpienie elementu AttachmentBase o określonym Stream typie i nośniku.

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)

Parametry

contentStream
Stream

Strumień zawierający zawartość tego załącznika.

mediaType
String

Typ nośnika MIME zawartości.

Wyjątki

contentStream to null.

mediaType jest nieprawidłową wartością.

Dotyczy

AttachmentBase(String, ContentType)

Źródło:
Attachment.cs
Źródło:
Attachment.cs
Źródło:
Attachment.cs

Tworzy wystąpienie elementu AttachmentBase o określonej nazwie pliku i typie zawartości.

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)

Parametry

fileName
String

Nazwa pliku przechowując zawartość tego załącznika.

contentType
ContentType

Typ zawartości.

Wyjątki

fileName to null.

contentType jest nieprawidłową wartością.

Dotyczy

AttachmentBase(String, String)

Źródło:
Attachment.cs
Źródło:
Attachment.cs
Źródło:
Attachment.cs

Tworzy wystąpienie elementu AttachmentBase o określonej nazwie pliku i typie nośnika.

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)

Parametry

fileName
String

Nazwa pliku przechowując zawartość tego załącznika.

mediaType
String

Typ nośnika MIME zawartości.

Wyjątki

fileName to null.

mediaType jest nieprawidłową wartością.

Dotyczy