MailAddressCollection.InsertItem Method (Int32, MailAddress)

 

Inserts an e-mail address into the MailAddressCollection, at the specified location.

Namespace:   System.Net.Mail
Assembly:  System (in System.dll)

Protected Overrides Sub InsertItem (
	index As Integer,
	item As MailAddress
)

Parameters

index
Type: System.Int32

The location at which to insert the e-mail address that is specified by item.

item
Type: System.Net.Mail.MailAddress

The e-mail address to be inserted into the collection.

Exception Condition
ArgumentNullException

The item parameter is null.

.NET Framework
Available since 2.0
Return to top
Show: