ManagementObject.CopyTo Method (String, PutOptions)


Copies the object to a different location.

Namespace:   System.Management
Assembly:  System.Management (in System.Management.dll)

public ManagementPath CopyTo(
	string path,
	PutOptions options


Type: System.String

The path to which the object should be copied.

Type: System.Management.PutOptions

The options for how the object should be put.

Return Value

Type: System.Management.ManagementPath

The new path of the copied object.

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.

.NET Framework
Available since 1.1
Return to top