Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IContentCmdletProvider Interface

Definition

Namespace:
System.Management.Automation.Provider
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

An interface that can be implemented on a Cmdlet provider to expose an item's content.

public interface class IContentCmdletProvider
public interface IContentCmdletProvider
type IContentCmdletProvider = interface
Public Interface IContentCmdletProvider
Derived

Remarks

An IContentCmdletProvider provider implements a set of methods that allows the use of a set of core commands against the data store that the provider gives access to. By implementing this interface users can take advantage the commands that expose the contents of an item. get-content set-content clear-content

This interface should only be implemented on derived classes of CmdletProvider, ItemCmdletProvider, ContainerCmdletProvider, or NavigationCmdletProvider.

A namespace provider should implemented this interface if items in the namespace have content the provide wishes to expose.

Methods

Name Description
ClearContent(String)

Clears the content from the specified item.

ClearContentDynamicParameters(String)

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

GetContentReader(String)

Gets the content reader for the item at the specified path.

GetContentReaderDynamicParameters(String)

Gives the provider an opportunity to attach additional parameters to the get-content cmdlet.

GetContentWriter(String)

Gets the content writer for the item at the specified path.

GetContentWriterDynamicParameters(String)

Gives the provider an opportunity to attach additional parameters to the set-content and add-content cmdlet.

Applies to