IContentCmdletProvider.GetContentReader Method


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

public System.Management.Automation.Provider.IContentReader GetContentReader (string path);

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



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

        Providers that declare <xref href="System.Management.Automation.Provider.ProviderCapabilities"></xref>
        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 reader 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.