AliasProvider Class

Represents the implementation of the Alias 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 AliasProvider

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

Providers are used to access data and components that would not otherwise be accessible at the command line. The data accessed is presented in a consistent format that resembles a file system drive.

Cmdlets use the Alias provider to access all the defined Windows PowerShell aliases.

For Help at the command line, type:

get-help about_provider


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