Partager via


AddressList.Insert Method

Inserts an Address into the collection at the specified index.

Namespace: Microsoft.Web.Services3.Addressing
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim index As Integer
Dim address As Address
Dim addressList1 As AddressList
addressList1.Insert(index, address)

Syntax

'Declaration
Public Sub Insert( _
    ByVal index As Integer, _
    ByVal address As Address _
)
public void Insert(
    int index, 
    Address address
);
public:
void Insert(
    int index,
    Address^ address
);
public void Insert(
    int index, 
    Address address
);
public function Insert(
     index : int, 
     address : Address
) : Void;

Parameters

  • index
    The zero-based index at which to insert address .
  • address
    The Address to insert into the collection.

Exceptions

Exception type Condition
ArgumentOutOfRangeException

index is less than 0.

-or-

index is greater than the total number of items in the collection.

ArgumentNullException

address is null .

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

AddressList Class
AddressList Members
Microsoft.Web.Services3.Addressing Namespace