IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters Method

Definition

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

C++
public:
 System::Object ^ NewPropertyDynamicParameters(System::String ^ path, System::String ^ propertyName, System::String ^ propertyTypeName, System::Object ^ value);

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.

propertyName
String

The name of the property that should be created.

propertyTypeName
String

The type of the property that should be created.

value
Object

The new value of the property that should be created.

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

Производ Верзије
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0