FunctionProvider Class

Represents the implementation of the Function provider that is provided by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.


Namespace: Microsoft.PowerShell.Commands
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As FunctionProvider

[OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Copy-Item")] 
[OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Rename-Item")] 
[OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Set-Item")] 
[OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Get-ChildItem")] 
[OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Get-Item")] 
[OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="New-Item")] 
[CmdletProviderAttribute("Function", ProviderCapabilities.ShouldProcess)] 
public sealed class FunctionProvider : SessionStateProviderBase
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Copy-Item") */ 
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Rename-Item") */ 
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Set-Item") */ 
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Get-ChildItem") */ 
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Get-Item") */ 
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="New-Item") */ 
/** @attribute CmdletProviderAttribute("Function", ProviderCapabilities.ShouldProcess) */ 
public final class FunctionProvider extends SessionStateProviderBase
OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Copy-Item") 
OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Rename-Item") 
OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Set-Item") 
OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Get-ChildItem") 
OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="Get-Item") 
OutputTypeAttribute(System.Compiler.TypeNode[], ProviderCmdlet="New-Item") 
CmdletProviderAttribute("Function", ProviderCapabilities.ShouldProcess) 
public final class FunctionProvider extends SessionStateProviderBase

The Function provider provides access to the functions defined in Windows PowerShell. This provider allows you to get, add, change, clear, and delete those variables.

For Help at the command line, type:

get-help function


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft