Export (0) Print
Expand All

MailAddressCollection.SetItem Method

Replaces the element at the specified index.

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

protected override void SetItem(
	int index,
	MailAddress item
)

Parameters

index
Type: System.Int32

The index of the e-mail address element to be replaced.

item
Type: System.Net.Mail.MailAddress

An e-mail address that will replace the element in 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