MailAddressCollectionSetItem Method

Replaces the element at the specified index.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
protected override void SetItem(
	int index,
	MailAddress item
)

Parameters

index
Type: SystemInt32
The zero-based index of the element to replace.
item
Type: Aspose.EmailMailAddress
The new value for the element at the specified index. The value can be null for reference types.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero. -or- index is greater than Count.
See Also