/********************************************************************++ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ namespace System.Management.Automation { /// /// Defines the names of the internal providers. /// Derived classes exist for custom and single shells. In the single /// shell the provider name includes the PSSnapin name. In custom /// shells it does not. /// /// internal abstract class ProviderNames { /// /// Gets the name of the EnvironmentProvider /// internal abstract string Environment { get; } /// /// Gets the name of the Certificate /// internal abstract string Certificate { get; } /// /// Gets the name of the VariableProvider /// internal abstract string Variable { get; } /// /// Gets the name of the AliasProvider /// internal abstract string Alias { get; } /// /// Gets the name of the FunctionProvider /// internal abstract string Function { get; } /// /// Gets the name of the FileSystemProvider /// internal abstract string FileSystem { get; } /// /// Gets the name of the RegistryProvider /// internal abstract string Registry { get; } } /// /// The provider names for the single shell /// internal class SingleShellProviderNames : ProviderNames { /// /// Gets the name of the EnvironmentProvider /// internal override string Environment { get { return "Microsoft.PowerShell.Core\\Environment"; } } /// /// Gets the name of the Certificate /// internal override string Certificate { get { return "Microsoft.PowerShell.Security\\Certificate"; } } /// /// Gets the name of the VariableProvider /// internal override string Variable { get { return "Microsoft.PowerShell.Core\\Variable"; } } /// /// Gets the name of the AliasProvider /// internal override string Alias { get { return "Microsoft.PowerShell.Core\\Alias"; } } /// /// Gets the name of the FunctionProvider /// internal override string Function { get { return "Microsoft.PowerShell.Core\\Function"; } } /// /// Gets the name of the FileSystemProvider /// internal override string FileSystem { get { return "Microsoft.PowerShell.Core\\FileSystem"; } } /// /// Gets the name of the RegistryProvider /// internal override string Registry { get { return "Microsoft.PowerShell.Core\\Registry"; } } } }