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.

ContainerCmdletProvider.NewItem Method (String, String, Object)


Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new item at the specified path.

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

protected virtual void NewItem(
	string path,
	string itemTypeName,
	object newItemValue


Type: System.String

The path to where the item is to be created.

Type: System.String

The provider defined type for the item to create.

Type: System.Object

The provider specific type that can be used to create a new instance of an item at the specified path.

This method defines provider-specific functionality for the New-Item cmdlet. If this implementation of the cmdlet requires additional parameters, the provider must also call the NewItemDynamicParameters method.

For more information about implementing providers (including samples), see Writing a Windows PowerShell Provider.

Return to top

Community Additions