ManagementObjectCollection.CopyTo Método
Definição
Copia a coleção para uma matriz.Copies the collection to an array.
Sobrecargas
| CopyTo(Array, Int32) |
Copia a coleção para uma matriz.Copies the collection to an array. |
| CopyTo(ManagementBaseObject[], Int32) |
Copia os itens na coleção para uma matriz ManagementBaseObject.Copies the items in the collection to a ManagementBaseObject array. |
CopyTo(Array, Int32)
Copia a coleção para uma matriz.Copies the collection to an array.
public:
virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)
Parâmetros
- array
- Array
Uma matriz para a qual copiar.An array to copy to.
- index
- Int32
O índice a partir do qual iniciar.The index to start from.
Implementações
Comentários
Segurança do .NET Framework.NET Framework Security
Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.
Confira também
Aplica-se a
CopyTo(ManagementBaseObject[], Int32)
Copia os itens na coleção para uma matriz ManagementBaseObject.Copies the items in the collection to a ManagementBaseObject array.
public:
void CopyTo(cli::array <System::Management::ManagementBaseObject ^> ^ objectCollection, int index);
public void CopyTo (System.Management.ManagementBaseObject[] objectCollection, int index);
member this.CopyTo : System.Management.ManagementBaseObject[] * int -> unit
Public Sub CopyTo (objectCollection As ManagementBaseObject(), index As Integer)
Parâmetros
- objectCollection
- ManagementBaseObject[]
A matriz de destino.The target array.
- index
- Int32
O índice a partir do qual iniciar.The index to start from.
Comentários
Segurança do .NET Framework.NET Framework Security
Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.