Class MIMEAttributesCollection
collection to store attributes.
Inheritance
System.Object
MIMEAttributesCollection
Implements
System.Collections.ICollection
System.Collections.IEnumerable
Namespace: Syncfusion.MIME.Base.Implementation.Collections
Assembly: Syncfusion.MIME.Base.dll
Syntax
public class MIMEAttributesCollection : CollectionBase, IMIMEAttributesCollection, ICollection, IEnumerable, IMIMESerialization
Constructors
MIMEAttributesCollection()
Declaration
public MIMEAttributesCollection()
Properties
IsExtended
Property to check if this collection is collection of extended attributes.
Declaration
public bool IsExtended { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Item[Int32]
Getting attribute by index.
Declaration
public IMIMEHeaderSubTypesAttribute this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type |
|---|
| IMIMEHeaderSubTypesAttribute |
Item[String]
Calling attribute by name.
Declaration
public IMIMEHeaderSubTypesAttribute this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Property Value
| Type |
|---|
| IMIMEHeaderSubTypesAttribute |
Methods
Add(IMIMEHeaderAttribute)
Adding part to collection.
Declaration
public void Add(IMIMEHeaderAttribute value)
Parameters
| Type | Name | Description |
|---|---|---|
| IMIMEHeaderAttribute | value | attribute to add. |
Contains(IMIMEHeaderAttribute)
Determines if Attribute is present.
Declaration
public bool Contains(IMIMEHeaderAttribute value)
Parameters
| Type | Name | Description |
|---|---|---|
| IMIMEHeaderAttribute | value | value to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if present false if not. |
OnClearComplete()
Declaration
protected override void OnClearComplete()
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | value |
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | value |
Remove(IMIMEHeaderAttribute)
Removing specified part from collection.
Declaration
public void Remove(IMIMEHeaderAttribute value)
Parameters
| Type | Name | Description |
|---|---|---|
| IMIMEHeaderAttribute | 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