Windows Dev Center

IDynamicPropertyCmdletProvider.CopyProperty Method

Copies a property from one item to another.

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

Dim instance As IDynamicPropertyCmdletProvider
Dim sourcePath As String
Dim sourceProperty As String
Dim destinationPath As String
Dim destinationProperty As String

instance.CopyProperty(sourcePath, sourceProperty, destinationPath, destinationProperty)

void CopyProperty (
	string sourcePath,
	string sourceProperty,
	string destinationPath,
	string destinationProperty
void CopyProperty (
	String sourcePath, 
	String sourceProperty, 
	String destinationPath, 
	String destinationProperty
function CopyProperty (
	sourcePath : String, 
	sourceProperty : String, 
	destinationPath : String, 
	destinationProperty : String



The path to item whose property is to be copied.


The name of property to be copied.


The path to the item where property is copied to.


The name of copied property.

If dynamic parameters are required by the Copy-ItemProperty cmdlet, the CopyPropertyDynamicParameters method must also be implemented.

In this context, an "item" is something that contains content within a data store. For example, the items of the file system data store could files or directories.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

© 2015 Microsoft