AttachmentBase Конструкторы

Определение

Создает экземпляр нового AttachmentBase.

Перегрузки

Имя Описание
AttachmentBase(Stream)

Создает экземпляр с AttachmentBase указанным Stream.

AttachmentBase(String)

AttachmentBase Создает экземпляр с указанным именем файла.

AttachmentBase(Stream, ContentType)

AttachmentBase Создает экземпляр с указанным Stream и ContentType.

AttachmentBase(Stream, String)

AttachmentBase Создает экземпляр с указанным Stream и типом носителя.

AttachmentBase(String, ContentType)

AttachmentBase Создает экземпляр с указанным именем файла и типом контента.

AttachmentBase(String, String)

AttachmentBase Создает экземпляр с указанным именем файла и типом носителя.

AttachmentBase(Stream)

Исходный код:
Attachment.cs
Исходный код:
Attachment.cs
Исходный код:
Attachment.cs
Исходный код:
Attachment.cs
Исходный код:
Attachment.cs

Создает экземпляр с AttachmentBase указанным 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)

Параметры

contentStream
Stream

Поток, содержащий содержимое этого вложения.

Исключения

contentStream равно null.

Применяется к

AttachmentBase(String)

Исходный код:
Attachment.cs
Исходный код:
Attachment.cs
Исходный код:
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
Исходный код:
Attachment.cs
Исходный код:
Attachment.cs

AttachmentBase Создает экземпляр с указанным Stream и 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)

Параметры

contentStream
Stream

Поток, содержащий содержимое этого вложения.

contentType
ContentType

Тип контента.

Исключения

contentStream равно null.

contentType не является допустимым значением.

Применяется к

AttachmentBase(Stream, String)

Исходный код:
Attachment.cs
Исходный код:
Attachment.cs
Исходный код:
Attachment.cs
Исходный код:
Attachment.cs
Исходный код:
Attachment.cs

AttachmentBase Создает экземпляр с указанным Stream и типом носителя.

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
Исходный код:
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
Исходный код:
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 не является допустимым значением.

Применяется к