IDynamicPropertyCmdletProvider.CopyProperty(String, String, String, String) IDynamicPropertyCmdletProvider.CopyProperty(String, String, String, String) IDynamicPropertyCmdletProvider.CopyProperty(String, String, String, String) Method

Definition

Copies a property of the item at the specified path to a new property on the destination item.

public void CopyProperty (string sourcePath, string sourceProperty, string destinationPath, string destinationProperty);
abstract member CopyProperty : string * string * string * string -> unit
Public Sub CopyProperty (sourcePath As String, sourceProperty As String, destinationPath As String, destinationProperty As String)
Parameters
sourcePath
String String String

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

sourceProperty
String String String

The name of the property to copy.

destinationPath
String String String

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

destinationProperty
String String String

The destination property to copy to.

Remarks

Providers override this method to give the user the ability to copy properties of provider objects using the copy-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 copy properties from 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