Freigeben über


IDynamicPropertyCmdletProvider.MoveProperty Method

Definition

Moves a property on an item specified by the path.

public:
 void MoveProperty(System::String ^ sourcePath, System::String ^ sourceProperty, System::String ^ destinationPath, System::String ^ destinationProperty);
public:
 void MoveProperty(Platform::String ^ sourcePath, Platform::String ^ sourceProperty, Platform::String ^ destinationPath, Platform::String ^ destinationProperty);
void MoveProperty(std::wstring const & sourcePath, std::wstring const & sourceProperty, std::wstring const & destinationPath, std::wstring const & destinationProperty);
public void MoveProperty (string sourcePath, string sourceProperty, string destinationPath, string destinationProperty);
abstract member MoveProperty : string * string * string * string -> unit
Public Sub MoveProperty (sourcePath As String, sourceProperty As String, destinationPath As String, destinationProperty As String)

Parameters

sourcePath
String

The path to the item on which to move the property.

sourceProperty
String

The name of the property to move.

destinationPath
String

The path to the item on which to move the property to.

destinationProperty
String

The destination property to move to.

Remarks

Providers override this method to give the user the ability to move properties from one provider object to another using the move-itemproperty cmdlet.

Providers that declare ProviderCapabilities of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those requirements by accessing the appropriate property from the base class.

By default overrides of this method should not move properties on or to objects that are generally hidden from the user unless the Force property is set to true. An error should be sent to the WriteError method if the path represents an item that is hidden from the user and Force is set to false.

Applies to