ServiceDescriptionFormatExtensionCollection.CopyTo(Object[], Int32) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Copia todo ServiceDescriptionFormatExtensionCollection para um array unidimensional do tipo ServiceDescriptionFormatExtension, começando no índice zero especificado do array alvo.
public:
void CopyTo(cli::array <System::Object ^> ^ array, int index);
public void CopyTo(object[] array, int index);
member this.CopyTo : obj[] * int -> unit
Public Sub CopyTo (array As Object(), index As Integer)
Parâmetros
- array
- Object[]
Um array de tipos ServiceDescriptionFormatExtension que serve como destino da ação de cópia.
- index
- Int32
O índice em base zero onde começar a colocar a coleção copiada.
Exemplos
// 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.Count];
myCollection.CopyTo(myObjectArray2,0);
Console.WriteLine("Collection elements are copied to an object array.");
' Copy elements of collection to an Object array.
Dim myObjectArray2(myCollection.Count -1 ) As Object
myCollection.CopyTo(myObjectArray2, 0)
Console.WriteLine("Collection elements are copied to an object array.")