ServiceDescriptionFormatExtensionCollection.CopyTo Method

Copies the entire ServiceDescriptionFormatExtensionCollection into a one-dimensional array of type ServiceDescriptionFormatExtension, starting at the specified zero-based index of the target array.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

public:
void CopyTo (
	array<Object^>^ array, 
	int index
)
public void CopyTo (
	Object[] array, 
	int index
)
public function CopyTo (
	array : Object[], 
	index : int
)
Not applicable.

Parameters

array

An array of type ServiceDescriptionFormatExtension serving as the destination of the copy action.

index

The zero-based index at which to start placing the copied collection.

// Copy elements of collection to an Object array.
array<Object^>^myObjectArray2 = gcnew array<Object^>(myCollection->Count);
myCollection->CopyTo( myObjectArray2, 0 );
Console::WriteLine( "Collection elements are copied to an object array." );

// Copy elements of collection to an Object array.
Object myObjectArray2[] = new Object[myCollection.get_Count()];
myCollection.CopyTo(myObjectArray2, 0);
Console.WriteLine("Collection elements are copied to an "
    + "object array.");

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: