Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MailAddressCollection.InsertItem Method

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

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

protected override void InsertItem(
	int index,
	MailAddress item
)

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.

ExceptionCondition
ArgumentNullException

The item parameter is null.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft