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.

IContentCmdletProvider Interface

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the methods used to read or write content for a specific item. Content from an item is read using content readers, and content is written to an item using content writers.

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

public interface class IContentCmdletProvider

NameDescription
System_CAPS_pubmethodClearContent(String^)

Clears the content of the specified item.

System_CAPS_pubmethodClearContentDynamicParameters(String^)

Retrieves any additional parameters that are required by this implementation of the Clear-Item cmdlet.

System_CAPS_pubmethodGetContentReader(String^)

Gets a content reader for the specified item.

System_CAPS_pubmethodGetContentReaderDynamicParameters(String^)

Retrieves any additional parameters required by this implementation of the Get-Content cmdlet.

System_CAPS_pubmethodGetContentWriter(String^)

Gets a content writer for the specified item.

System_CAPS_pubmethodGetContentWriterDynamicParameters(String^)

Retrieves any additional parameters that are required by this implementation of the Set-Content cmdlet.

In this context, an item is something that contains content within a data store. For example, the FileSystem provider (provided by Windows PowerShell) exposes the contents of a file through a content reader and a content writer.

Developers should implement this interface under the following conditions.

For more information about providers, see Windows PowerShell Providers [ps].

Windows PowerShell provides a TemplateProvider.cs file that is available on the Windows SDK. To start writing your own provider make a copy of this file and use that copy to create your provider, removing any functionality that you do not need. For more information about designing a provider, see Designing Your Windows PowerShell Provider [ps].

Return to top
Show: