Share via


UriList.Insert Method

Inserts a Uri into the UriList at the specified index.

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

Usage

'Usage
Dim index As Integer
Dim uri As Uri
Dim uriList1 As UriList
uriList1.Insert(index, uri)

Syntax

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

Parameters

  • index
    The zero-based index at which uri should be inserted.
  • uri
    The Uri to insert.

Exceptions

Exception type Condition
ArgumentOutOfRangeException

index is smaller than 0 or larger that the total number of Uri in the current UriList.

ArgumentNullException

uri 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

UriList Class
UriList Members
Microsoft.Web.Services3 Namespace