IDynamicPropertyCmdletProvider.MoveProperty Method

Moves a property from one item to another.


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

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

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

void MoveProperty (
	string sourcePath,
	string sourceProperty,
	string destinationPath,
	string destinationProperty
)
void MoveProperty (
	String sourcePath, 
	String sourceProperty, 
	String destinationPath, 
	String destinationProperty
)
function MoveProperty (
	sourcePath : String, 
	sourceProperty : String, 
	destinationPath : String, 
	destinationProperty : String
)

Parameters

sourcePath

The path to the item whose property is to be moved.

sourceProperty

The name of the property to be moved.

destinationPath

The path to the item where the property is moved to.

destinationProperty

The name of the moved property.

If dynamic parameters are required by the Move-ItemProperty cmdlet, the MovePropertyDynamicParameters 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 be 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


Show:
© 2015 Microsoft