Condividi tramite


IContentCmdletProvider.GetContentWriter(String) Method

Definition

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

public:
 System::Management::Automation::Provider::IContentWriter ^ GetContentWriter(System::String ^ path);
public System.Management.Automation.Provider.IContentWriter GetContentWriter (string path);
public System.Management.Automation.Provider.IContentWriter? GetContentWriter (string path);
abstract member GetContentWriter : string -> System.Management.Automation.Provider.IContentWriter
Public Function GetContentWriter (path As String) As IContentWriter

Parameters

path
String

The path to the item to get the content writer for.

Returns

An IContentWriter for the item at the specified path.

Remarks

Overrides of this method should return an IContentWriter for the item specified by the path.

Providers that declare ProviderCapabilities of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those requirements by accessing the appropriate property from the base class.

By default overrides of this method should not return a content writer for objects that are generally hidden from the user unless the Force property is set to true. An error should be sent to the WriteError method if the path represents an item that is hidden from the user and Force is set to false.

Applies to