ManagementObject.CopyTo Método

Definição

Copia o objeto para outro local.Copies the object to a different location.

Sobrecargas

CopyTo(ManagementOperationObserver, String, PutOptions)

Copia o objeto para outro local, de forma assíncrona.Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

Copia o objeto para outro local, de forma assíncrona.Copies the object to a different location, asynchronously.

CopyTo(String, PutOptions)

Copia o objeto para outro local.Copies the object to a different location.

CopyTo(ManagementPath, PutOptions)

Copia o objeto para outro local.Copies the object to a different location.

CopyTo(ManagementOperationObserver, ManagementPath)

Copia o objeto para outro local, de forma assíncrona.Copies the object to a different location, asynchronously.

CopyTo(String)

Copia o objeto para outro local.Copies the object to a different location.

CopyTo(ManagementPath)

Copia o objeto para outro local.Copies the object to a different location.

CopyTo(ManagementOperationObserver, String)

Copia o objeto para outro local, de forma assíncrona.Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String, PutOptions)

Copia o objeto para outro local, de forma assíncrona.Copies the object to a different location, asynchronously.

public:
 void CopyTo(System::Management::ManagementOperationObserver ^ watcher, System::String ^ path, System::Management::PutOptions ^ options);
public void CopyTo (System.Management.ManagementOperationObserver watcher, string path, System.Management.PutOptions options);
member this.CopyTo : System.Management.ManagementOperationObserver * string * System.Management.PutOptions -> unit
Public Sub CopyTo (watcher As ManagementOperationObserver, path As String, options As PutOptions)

Parâmetros

watcher
ManagementOperationObserver

O objeto que receberá os resultados da operação.The object that will receive the results of the operation.

path
String

O caminho para o qual o objeto deve ser copiado.The path to which the object should be copied.

options
PutOptions

As opções de como o objeto deve ser colocado.The options for how the object should be put.

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.

Aplica-se a

CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

Copia o objeto para outro local, de forma assíncrona.Copies the object to a different location, asynchronously.

public:
 void CopyTo(System::Management::ManagementOperationObserver ^ watcher, System::Management::ManagementPath ^ path, System::Management::PutOptions ^ options);
public void CopyTo (System.Management.ManagementOperationObserver watcher, System.Management.ManagementPath path, System.Management.PutOptions options);
member this.CopyTo : System.Management.ManagementOperationObserver * System.Management.ManagementPath * System.Management.PutOptions -> unit
Public Sub CopyTo (watcher As ManagementOperationObserver, path As ManagementPath, options As PutOptions)

Parâmetros

watcher
ManagementOperationObserver

O objeto que receberá os resultados da operação.The object that will receive the results of the operation.

path
ManagementPath

O caminho para o qual o objeto deve ser copiado.The path to which the object should be copied.

options
PutOptions

As opções de como o objeto deve ser colocado.The options for how the object should be put.

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.

Aplica-se a

CopyTo(String, PutOptions)

Copia o objeto para outro local.Copies the object to a different location.

public:
 System::Management::ManagementPath ^ CopyTo(System::String ^ path, System::Management::PutOptions ^ options);
public System.Management.ManagementPath CopyTo (string path, System.Management.PutOptions options);
member this.CopyTo : string * System.Management.PutOptions -> System.Management.ManagementPath
Public Function CopyTo (path As String, options As PutOptions) As ManagementPath

Parâmetros

path
String

O caminho para o qual o objeto deve ser copiado.The path to which the object should be copied.

options
PutOptions

As opções de como o objeto deve ser colocado.The options for how the object should be put.

Retornos

ManagementPath

O novo caminho do objeto copiado.The new path of the copied object.

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.

Aplica-se a

CopyTo(ManagementPath, PutOptions)

Copia o objeto para outro local.Copies the object to a different location.

public:
 System::Management::ManagementPath ^ CopyTo(System::Management::ManagementPath ^ path, System::Management::PutOptions ^ options);
public System.Management.ManagementPath CopyTo (System.Management.ManagementPath path, System.Management.PutOptions options);
member this.CopyTo : System.Management.ManagementPath * System.Management.PutOptions -> System.Management.ManagementPath
Public Function CopyTo (path As ManagementPath, options As PutOptions) As ManagementPath

Parâmetros

path
ManagementPath

O ManagementPath para o qual o objeto deve ser copiado.The ManagementPath to which the object should be copied.

options
PutOptions

As opções de como o objeto deve ser colocado.The options for how the object should be put.

Retornos

ManagementPath

O novo caminho do objeto copiado.The new path of the copied object.

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.

Aplica-se a

CopyTo(ManagementOperationObserver, ManagementPath)

Copia o objeto para outro local, de forma assíncrona.Copies the object to a different location, asynchronously.

public:
 void CopyTo(System::Management::ManagementOperationObserver ^ watcher, System::Management::ManagementPath ^ path);
public void CopyTo (System.Management.ManagementOperationObserver watcher, System.Management.ManagementPath path);
member this.CopyTo : System.Management.ManagementOperationObserver * System.Management.ManagementPath -> unit
Public Sub CopyTo (watcher As ManagementOperationObserver, path As ManagementPath)

Parâmetros

watcher
ManagementOperationObserver

O objeto que receberá os resultados da operação.The object that will receive the results of the operation.

path
ManagementPath

Um ManagementPath que especifica o caminho para o qual o objeto deve ser copiado.A ManagementPath specifying the path to which the object should be copied.

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.

Aplica-se a

CopyTo(String)

Copia o objeto para outro local.Copies the object to a different location.

public:
 System::Management::ManagementPath ^ CopyTo(System::String ^ path);
public System.Management.ManagementPath CopyTo (string path);
member this.CopyTo : string -> System.Management.ManagementPath
Public Function CopyTo (path As String) As ManagementPath

Parâmetros

path
String

O caminho para o qual o objeto deve ser copiado.The path to which the object should be copied.

Retornos

ManagementPath

O novo caminho do objeto copiado.The new path of the copied object.

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.

Aplica-se a

CopyTo(ManagementPath)

Copia o objeto para outro local.Copies the object to a different location.

public:
 System::Management::ManagementPath ^ CopyTo(System::Management::ManagementPath ^ path);
public System.Management.ManagementPath CopyTo (System.Management.ManagementPath path);
member this.CopyTo : System.Management.ManagementPath -> System.Management.ManagementPath
Public Function CopyTo (path As ManagementPath) As ManagementPath

Parâmetros

path
ManagementPath

O ManagementPath para o qual o objeto deve ser copiado.The ManagementPath to which the object should be copied.

Retornos

ManagementPath

O novo caminho do objeto copiado.The new path of the copied object.

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.

Aplica-se a

CopyTo(ManagementOperationObserver, String)

Copia o objeto para outro local, de forma assíncrona.Copies the object to a different location, asynchronously.

public:
 void CopyTo(System::Management::ManagementOperationObserver ^ watcher, System::String ^ path);
public void CopyTo (System.Management.ManagementOperationObserver watcher, string path);
member this.CopyTo : System.Management.ManagementOperationObserver * string -> unit
Public Sub CopyTo (watcher As ManagementOperationObserver, path As String)

Parâmetros

watcher
ManagementOperationObserver

O objeto que receberá os resultados da operação.The object that will receive the results of the operation.

path
String

O caminho para o qual o objeto deve ser copiado.The path to which the object should be copied.

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.

Aplica-se a