Class MIMEPart
base MIME part class
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: Syncfusion.MIME.Base.Implementation.Parts
Assembly: Syncfusion.MIME.Base.dll
Syntax
public class MIMEPart : IMIMEPart, IMIMESerialization
Constructors
MIMEPart(IMIMEPartHeader, String)
Constructor wich creates part with attach header.
Declaration
public MIMEPart(IMIMEPartHeader header, string boundary)
Parameters
Type | Name | Description |
---|---|---|
IMIMEPartHeader | header | parental header. |
System.String | boundary | boundary. |
Properties
Close
get\set if part must close itself
Declaration
public bool Close { get; set; }
Property Value
Type |
---|
System.Boolean |
Data
gets/sets part data
Declaration
public virtual Stream Data { get; set; }
Property Value
Type |
---|
System.IO.Stream |
Header
returns part header
Declaration
public virtual IMIMEPartHeader Header { get; }
Property Value
Type |
---|
IMIMEPartHeader |
UniqueBoundary
gets/sets value of unique part boundary
Declaration
public virtual string UniqueBoundary { get; set; }
Property Value
Type |
---|
System.String |
Methods
CheckDataType(Stream)
Writing part Data in specified encoding.
Declaration
protected virtual void CheckDataType(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | stream to write to. |
GetData()
method to get part data.
Declaration
public byte[] GetData()
Returns
Type | Description |
---|---|
System.Byte[] | part data |
Save(Stream)
Method to save part.
Declaration
public virtual void Save(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | stream to write to. |