ManagementObject.CopyTo 方法

定义

将对象复制到另一个位置。Copies the object to a different location.

重载

CopyTo(ManagementOperationObserver, String, PutOptions)

将该对象异步复制到另一个位置。Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

将该对象异步复制到另一个位置。Copies the object to a different location, asynchronously.

CopyTo(String, PutOptions)

将对象复制到另一个位置。Copies the object to a different location.

CopyTo(ManagementPath, PutOptions)

将对象复制到另一个位置。Copies the object to a different location.

CopyTo(ManagementOperationObserver, ManagementPath)

将该对象异步复制到另一个位置。Copies the object to a different location, asynchronously.

CopyTo(String)

将对象复制到另一个位置。Copies the object to a different location.

CopyTo(ManagementPath)

将对象复制到另一个位置。Copies the object to a different location.

CopyTo(ManagementOperationObserver, String)

将该对象异步复制到另一个位置。Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String, PutOptions)

将该对象异步复制到另一个位置。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)

参数

watcher
ManagementOperationObserver

将接收操作结果的对象。The object that will receive the results of the operation.

path
String

对象应复制到的路径。The path to which the object should be copied.

options
PutOptions

有关应当如何放置对象的选项。The options for how the object should be put.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

将该对象异步复制到另一个位置。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)

参数

watcher
ManagementOperationObserver

将接收操作结果的对象。The object that will receive the results of the operation.

path
ManagementPath

对象应复制到的路径。The path to which the object should be copied.

options
PutOptions

有关应当如何放置对象的选项。The options for how the object should be put.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

CopyTo(String, PutOptions)

将对象复制到另一个位置。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

参数

path
String

对象应复制到的路径。The path to which the object should be copied.

options
PutOptions

有关应当如何放置对象的选项。The options for how the object should be put.

返回

已复制对象的新路径。The new path of the copied object.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

CopyTo(ManagementPath, PutOptions)

将对象复制到另一个位置。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

参数

path
ManagementPath

对象应复制到的 ManagementPathThe ManagementPath to which the object should be copied.

options
PutOptions

有关应当如何放置对象的选项。The options for how the object should be put.

返回

已复制对象的新路径。The new path of the copied object.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

CopyTo(ManagementOperationObserver, ManagementPath)

将该对象异步复制到另一个位置。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)

参数

watcher
ManagementOperationObserver

将接收操作结果的对象。The object that will receive the results of the operation.

path
ManagementPath

一个 ManagementPath,它指定对象应复制到的路径。A ManagementPath specifying the path to which the object should be copied.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

CopyTo(String)

将对象复制到另一个位置。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

参数

path
String

对象应复制到的路径。The path to which the object should be copied.

返回

已复制对象的新路径。The new path of the copied object.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

CopyTo(ManagementPath)

将对象复制到另一个位置。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

参数

path
ManagementPath

对象应复制到的 ManagementPathThe ManagementPath to which the object should be copied.

返回

已复制对象的新路径。The new path of the copied object.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

CopyTo(ManagementOperationObserver, String)

将该对象异步复制到另一个位置。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)

参数

watcher
ManagementOperationObserver

将接收操作结果的对象。The object that will receive the results of the operation.

path
String

对象应复制到的路径。The path to which the object should be copied.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

适用于