ManagementObject.CopyTo Method (String, PutOptions)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Copies the object to a different location.

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

Public Function CopyTo (
	path As String,
	options As PutOptions
) As ManagementPath


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