FileSystemProvider Class

Definition

Defines the implementation of a File System Provider. This provider allows for stateless namespace navigation of the file system.

public sealed class FileSystemProvider : System.Management.Automation.Provider.NavigationCmdletProvider, System.Management.Automation.Provider.ICmdletProviderSupportsHelp, System.Management.Automation.Provider.IContentCmdletProvider, System.Management.Automation.Provider.IPropertyCmdletProvider, System.Management.Automation.Provider.ISecurityDescriptorCmdletProvider
Inheritance
Implements

Inherited Members

System.Management.Automation.Provider.CmdletProvider

System.Management.Automation.Provider.ContainerCmdletProvider

System.Management.Automation.Provider.DriveCmdletProvider

System.Management.Automation.Provider.ItemCmdletProvider

System.Management.Automation.Provider.NavigationCmdletProvider

Constructors

FileSystemProvider()

Initializes a new instance of the FileSystemProvider class. Since this object needs to be stateless, the constructor does nothing.

Fields

ProviderName

Gets the name of the provider

Methods

ClearContent(String)

Clears the content of the specified file.

ClearContentDynamicParameters(String)

Gets the dynamic propery parameters required by the clear-content cmdlet.

ClearProperty(String, Collection<String>)

Clears the specified properties on the item at the given path. The File System provider supports only the "Attributes" property.

ClearPropertyDynamicParameters(String, Collection<String>)

Gets the dynamic propery parameters required by the clear-itemproperty cmdlet. This feature is not required by the File System provider.

GetContentReader(String)

Creates an instance of the FileSystemContentStream class, opens the specified file for reading, and returns the IContentReader interface to it.

GetContentReaderDynamicParameters(String)

Gets the dynamic propery parameters required by the get-content cmdlet.

GetContentWriter(String)

Creates an instance of the FileSystemContentStream class, opens the specified file for writing, and returns the IContentReader interface to it.

GetContentWriterDynamicParameters(String)

Gets the dynamic propery parameters required by the set-content and add-content cmdlets.

GetHelpMaml(String, String)

Implementation of ICmdletProviderSupportsHelp interface. Gets provider-specific help content for the corresponding cmdlet

GetProperty(String, Collection<String>)

Gets a property for the given item.

GetPropertyDynamicParameters(String, Collection<String>)

Gets the dynamic propery parameters required by the get-itemproperty cmdlet. This feature is not required by the File System provider.

GetSecurityDescriptor(String, AccessControlSections)

Gets the SecurityDescriptor at the specified path, including only the specified AccessControlSections.

Mode(PSObject)

Provides a mode property for FileSystemInfo

NewSecurityDescriptorFromPath(String, AccessControlSections)

Creates a new empty security descriptor of the same type as the item specified by the path. If "path" points to a file system directory, then the descriptor returned will be of type DirectorySecurity.

NewSecurityDescriptorOfType(String, AccessControlSections)

Creates a new empty security descriptor of the specified type.

SetProperty(String, PSObject)

Sets the specified properties on the item at the given path.

SetPropertyDynamicParameters(String, PSObject)

Gets the dynamic propery parameters required by the set-itemproperty cmdlet. This feature is not required by the File System provider.

SetSecurityDescriptor(String, ObjectSecurity)

Sets the SecurityDescriptor at the specified path.