Class MailKitEmailAttachment
A mail kit email attachment.
Inheritance
System.Object
MailKitEmailAttachment
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Mail.Message
Assembly: Kephas.Mail.MailKit.dll
Syntax
public class MailKitEmailAttachment : IEmailAttachment, IIndexable
Properties
| Improve this Doc View SourceContent
Gets or sets the attachment content.
Declaration
public Stream Content { get; set; }
Property Value
Type | Description |
---|---|
System.IO.Stream | The attachment content. |
Item[String]
Convenience method that provides a string Indexer to the Properties collection AND the strongly typed properties of the object by name. // dynamic exp["Address"] = "112 nowhere lane"; // strong var name = exp["StronglyTypedProperty"] as string;.
Declaration
public object this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Property Value
Type | Description |
---|---|
System.Object | The System.Object identified by the key. |
Name
Gets or sets the attachment name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |