Język

AttachmentBase Konstruktory

Definicja

Tworzy wystąpienie nowego AttachmentBaseelementu .

Przeciążenia

Nazwa Opis
AttachmentBase(Stream)

Tworzy wystąpienie elementu AttachmentBase z określonym Streamelementem .

AttachmentBase(String)

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

AttachmentBase(Stream, ContentType)

Tworzy wystąpienie elementu AttachmentBase z określonymi Stream elementami 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
Źródło:
Attachment.cs
Źródło:
Attachment.cs

Tworzy wystąpienie elementu AttachmentBase z określonym Streamelementem .

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

Parametr contentStream ma wartość null.

Dotyczy

AttachmentBase(String)

Źródło:
Attachment.cs
Źródło:
Attachment.cs
Ź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

Parametr fileName ma wartość null.

Dotyczy

AttachmentBase(Stream, ContentType)

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

Tworzy wystąpienie elementu AttachmentBase z określonymi Stream elementami 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

Parametr contentStream ma wartość 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
Ź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

Parametr contentStream ma wartość 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
Ź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

Parametr fileName ma wartość 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
Ź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

Parametr fileName ma wartość null.

mediaType jest nieprawidłową wartością.

Dotyczy