Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MailAddressCollection::SetItem Method (Int32, MailAddress^)

 

Replaces the element at the specified index.

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

protected:
virtual void SetItem(
	int index,
	MailAddress^ item
) override

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:
© 2017 Microsoft