EmbeddedMailObjectsCollection::Insert Method (Int32, EmbeddedMailObject^)

 

Inserts an EmbeddedMailObject into the EmbeddedMailObjectsCollection object at the specified index position.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
void Insert(
	int index,
	EmbeddedMailObject^ value
)

Parameters

index
Type: System::Int32

An integer value that indicates the index position at which to insert the EmbeddedMailObject in the collection.

value
Type: System.Web.UI.WebControls::EmbeddedMailObject^

An EmbeddedMailObject object to insert into the EmbeddedMailObjectsCollection.

Exception Condition
ArgumentOutOfRangeException

The specified index is out of range of the collection.

ArgumentNullException

The specified value is null.

If index is 0, value is added to the beginning of the EmbeddedMailObjectsCollection. If index equals the number of items in the EmbeddedMailObjectsCollection, value is appended to the end.

.NET Framework
Available since 2.0
Return to top
Show: