MailAddressCollection.SetItem Method (Int32, MailAddress)

 

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.

Exception Condition
ArgumentNullException

The item parameter is null.

.NET Framework
Available since 2.0
Return to top
Show: