AttachmentBase Construtores

Definição

Instância de um novo AttachmentBase.

Sobrecargas

Name Description
AttachmentBase(Stream)

Instancia um AttachmentBase com o especificado Stream.

AttachmentBase(String)

Instancia um AttachmentBase com o nome de ficheiro especificado.

AttachmentBase(Stream, ContentType)

Instancia um AttachmentBase com os especificados Stream e ContentType.

AttachmentBase(Stream, String)

Instancia um AttachmentBase com o tipo especificado Stream e do meio.

AttachmentBase(String, ContentType)

Instancia um AttachmentBase com o nome de ficheiro e o tipo de conteúdo especificados.

AttachmentBase(String, String)

Instancia um AttachmentBase com o nome de ficheiro e o tipo de media especificados.

AttachmentBase(Stream)

Instancia um AttachmentBase com o especificado 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)

Parâmetros

contentStream
Stream

Um stream contendo o conteúdo deste anexo.

Exceções

contentStream é null.

Aplica-se a

AttachmentBase(String)

Instancia um AttachmentBase com o nome de ficheiro especificado.

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)

Parâmetros

fileName
String

O nome do ficheiro que contém o conteúdo deste anexo.

Exceções

fileName é null.

Aplica-se a

AttachmentBase(Stream, ContentType)

Instancia um AttachmentBase com os especificados Stream e 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)

Parâmetros

contentStream
Stream

Um stream contendo o conteúdo deste anexo.

contentType
ContentType

O tipo de conteúdo.

Exceções

contentStream é null.

contentType não é um valor válido.

Aplica-se a

AttachmentBase(Stream, String)

Instancia um AttachmentBase com o tipo especificado Stream e do meio.

protected:
 AttachmentBase(System::IO::Stream ^ contentStream, System::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)

Parâmetros

contentStream
Stream

Um stream contendo o conteúdo deste anexo.

mediaType
String

O tipo MIME media do conteúdo.

Exceções

contentStream é null.

mediaType não é um valor válido.

Aplica-se a

AttachmentBase(String, ContentType)

Instancia um AttachmentBase com o nome de ficheiro e o tipo de conteúdo especificados.

protected:
 AttachmentBase(System::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)

Parâmetros

fileName
String

O nome do ficheiro que contém o conteúdo deste anexo.

contentType
ContentType

O tipo de conteúdo.

Exceções

fileName é null.

contentType não é um valor válido.

Aplica-se a

AttachmentBase(String, String)

Instancia um AttachmentBase com o nome de ficheiro e o tipo de media especificados.

protected:
 AttachmentBase(System::String ^ fileName, System::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)

Parâmetros

fileName
String

O nome do ficheiro que contém o conteúdo deste anexo.

mediaType
String

O tipo MIME media do conteúdo.

Exceções

fileName é null.

mediaType não é um valor válido.

Aplica-se a