Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters Method (String, String, String, Object)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Returns any dynamic parameters required by the New-ItemProperty cmdlet.

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

object NewPropertyDynamicParameters(
	string path,
	string propertyName,
	string propertyTypeName,
	object value
)

Parameters

path
Type: System.String

The path to the item where the property is added.

propertyName
Type: System.String

The name of the new property.

propertyTypeName
Type: System.String

The type of the new property.

value
Type: System.Object

The value of the new property.

Return Value

Type: System.Object

An Object object that contains the dynamic parameters for the New-ItemProperty cmdlet.

The provider engine calls this method before the NewProperty method is called to dynamically add parameters to the New-ItemProperty cmdlet. The Object object returned by this method can be any CLR object that has properties or fields tagged as parameters or a pseudo-parameter collection that allows additional parameters to be defined at runtime.

In this context, an "item" is something that contains content within a data tore. For example, the items of the file system data store could be files or directories.

Return to top

Community Additions

Show: