Udostępnij za pośrednictwem


IPropertyCmdletProvider.ClearPropertyDynamicParameters Method

Definition

Gives the provider an opportunity to attach additional parameters to the clear-itemproperty cmdlet.

public:
 System::Object ^ ClearPropertyDynamicParameters(System::String ^ path, System::Collections::ObjectModel::Collection<System::String ^> ^ propertyToClear);
public object ClearPropertyDynamicParameters (string path, System.Collections.ObjectModel.Collection<string> propertyToClear);
public object? ClearPropertyDynamicParameters (string path, System.Collections.ObjectModel.Collection<string> propertyToClear);
abstract member ClearPropertyDynamicParameters : string * System.Collections.ObjectModel.Collection<string> -> obj
Public Function ClearPropertyDynamicParameters (path As String, propertyToClear As Collection(Of String)) As Object

Parameters

path
String

If the path was specified on the command line, this is the path to the item to get the dynamic parameters for.

propertyToClear
Collection<String>

The name of the property to clear.

Returns

Overrides of this method should return an object that has properties and fields decorated with parsing attributes similar to a cmdlet class or a RuntimeDefinedParameterDictionary.

The default implementation returns null. (no additional parameters)

Applies to