AttachmentBase Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Crea un'istanza di un nuovo AttachmentBaseoggetto .
Overload
| Nome | Descrizione |
|---|---|
| AttachmentBase(Stream) |
Crea un'istanza di con AttachmentBase l'oggetto specificato Stream. |
| AttachmentBase(String) |
Crea un'istanza di con AttachmentBase il nome file specificato. |
| AttachmentBase(Stream, ContentType) |
Crea un'istanza di con AttachmentBase l'oggetto specificato Stream e ContentType. |
| AttachmentBase(Stream, String) |
Crea un'istanza di con AttachmentBase il tipo di supporto e specificato Stream . |
| AttachmentBase(String, ContentType) |
Crea un'istanza di con AttachmentBase il nome file e il tipo di contenuto specificati. |
| AttachmentBase(String, String) |
Crea un'istanza di con AttachmentBase il nome file e il tipo di supporto specificati. |
AttachmentBase(Stream)
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
Crea un'istanza di con AttachmentBase l'oggetto specificato 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)
Parametri
- contentStream
- Stream
Flusso contenente il contenuto per questo allegato.
Eccezioni
contentStream è null.
Si applica a
AttachmentBase(String)
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
Crea un'istanza di con AttachmentBase il nome file specificato.
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)
Parametri
- fileName
- String
Nome del file che contiene il contenuto per questo allegato.
Eccezioni
fileName è null.
Si applica a
AttachmentBase(Stream, ContentType)
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
Crea un'istanza di con AttachmentBase l'oggetto specificato 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);
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)
Parametri
- contentStream
- Stream
Flusso contenente il contenuto per questo allegato.
- contentType
- ContentType
Tipo di contenuto.
Eccezioni
contentStream è null.
contentType non è un valore valido.
Si applica a
AttachmentBase(Stream, String)
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
Crea un'istanza di con AttachmentBase il tipo di supporto e specificato 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)
Parametri
- contentStream
- Stream
Flusso contenente il contenuto per questo allegato.
- mediaType
- String
Tipo di supporto MIME del contenuto.
Eccezioni
contentStream è null.
mediaType non è un valore valido.
Si applica a
AttachmentBase(String, ContentType)
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
Crea un'istanza di con AttachmentBase il nome file e il tipo di contenuto specificati.
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)
Parametri
- fileName
- String
Nome del file che contiene il contenuto per questo allegato.
- contentType
- ContentType
Tipo di contenuto.
Eccezioni
fileName è null.
contentType non è un valore valido.
Si applica a
AttachmentBase(String, String)
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
- Origine:
- Attachment.cs
Crea un'istanza di con AttachmentBase il nome file e il tipo di supporto specificati.
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)
Parametri
- fileName
- String
Nome del file che contiene il contenuto per questo allegato.
- mediaType
- String
Tipo di supporto MIME del contenuto.
Eccezioni
fileName è null.
mediaType non è un valore valido.