Class MIMEPartsCollection
Parts collection
Inheritance
System.Object
MIMEPartsCollection
Implements
System.Collections.ICollection
System.Collections.IEnumerable
Namespace: Syncfusion.MIME.Base.Implementation.Collections
Assembly: Syncfusion.MIME.Base.dll
Syntax
public class MIMEPartsCollection : CollectionBase, IMIMEPartsCollection, ICollection, IEnumerable, IMIMESerialization
Constructors
MIMEPartsCollection()
Declaration
public MIMEPartsCollection()
Properties
Item[Int32]
Calling part by index.
Declaration
public IMIMEPart this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type |
|---|
| IMIMEPart |
Item[String]
Getting part by boundary.
Declaration
public IMIMEPart this[string boundary] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | boundary |
Property Value
| Type |
|---|
| IMIMEPart |
Methods
Add(IMIMEPart)
Adding part to collection.
Declaration
public void Add(IMIMEPart value)
Parameters
| Type | Name | Description |
|---|---|---|
| IMIMEPart | value | part to add. |
ClearAll()
Clearing parts collection
Declaration
public void ClearAll()
Contains(IMIMEPart)
Method to check if part is present in collection.
Declaration
public bool Contains(IMIMEPart part)
Parameters
| Type | Name | Description |
|---|---|---|
| IMIMEPart | part | part to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if present, False if not. |
Insert(Int32, IMIMEPart)
Method to insert object to collection.
Declaration
public void Insert(int index, IMIMEPart value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | at wnat index to insert. |
| IMIMEPart | value | object to insert. |
OnClearComplete()
Declaration
protected override void OnClearComplete()
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | data |
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | data |
Remove(IMIMEPart)
Removing specified part from collection.
Declaration
public void Remove(IMIMEPart value)
Parameters
| Type | Name | Description |
|---|---|---|
| IMIMEPart | value | attribute to remove. |
Save(Stream)
Save MIME document to stream.
Declaration
public void Save(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | Stream to write to. |
Implements
System.Collections.ICollection
System.Collections.IEnumerable