ContainerCmdletProvider.NewItemDynamicParameters
Method
Definition
Gives the provider an opportunity to attach additional parameters to the new-item cmdlet.
protected virtual object NewItemDynamicParameters (string path, string itemTypeName, object newItemValue);
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.
- itemTypeName
- String
The provider defined type of the item to create.
- newItemValue
- Object
This is a provider specific type that the provider can use to create a new instance of an item at the specified path.
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 implemenation returns null. (no additional parameters)