UriList.CopyTo Method
Copies the elements of a UriList to an array of type Uri at the specified index.
Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim array() As Uri
Dim index As Integer
Dim uriList1 As UriList
uriList1.CopyTo(array, index)
Syntax
'Declaration
Public Sub CopyTo( _
ByVal array() As Uri, _
ByVal index As Integer _
)
public void CopyTo(
Uri[] array,
int index
);
public:
void CopyTo(
array<Uri^>^ array,
int index
);
public void CopyTo(
Uri[] array,
int index
);
public function CopyTo(
array : Uri[],
index : int
) : Void;
Parameters
- array
An array of type Uri that is copied from UriList . The array must have zero-based indexing.
- index
The zero-based index in array at which copying begins.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | index is null. |
ArgumentOutOfRangeException | index is smaller than 0 or larger that the total number of Uri in the current UriList. |
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