MegaBites-AI/Windows-powershell
0308
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4namespace System.Management.Automation5{6 /// <summary>7 /// Defines the names of the internal providers.8 /// Derived classes exist for custom and single shells. In the single9 /// shell the provider name includes the PSSnapin name. In custom10 /// shells it does not.11 /// </summary>12 internal abstract class ProviderNames13 {14 /// <summary>15 /// Gets the name of the EnvironmentProvider.16 /// </summary>17 internal abstract string Environment { get; }18 19 /// <summary>20 /// Gets the name of the Certificate.21 /// </summary>22 internal abstract string Certificate { get; }23 24 /// <summary>25 /// Gets the name of the VariableProvider.26 /// </summary>27 internal abstract string Variable { get; }28 29 /// <summary>30 /// Gets the name of the AliasProvider.31 /// </summary>32 internal abstract string Alias { get; }33 34 /// <summary>35 /// Gets the name of the FunctionProvider.36 /// </summary>37 internal abstract string Function { get; }38 39 /// <summary>40 /// Gets the name of the FileSystemProvider.41 /// </summary>42 internal abstract string FileSystem { get; }43 44 /// <summary>45 /// Gets the name of the RegistryProvider.46 /// </summary>47 internal abstract string Registry { get; }48 }49 50 /// <summary>51 /// The provider names for the single shell.52 /// </summary>53 internal class SingleShellProviderNames : ProviderNames54 {55 /// <summary>56 /// Gets the name of the EnvironmentProvider.57 /// </summary>58 internal override string Environment59 {60 get61 {62 return "Microsoft.PowerShell.Core\\Environment";63 }64 }65 66 /// <summary>67 /// Gets the name of the Certificate.68 /// </summary>69 internal override string Certificate70 {71 get72 {73 return "Microsoft.PowerShell.Security\\Certificate";74 }75 }76 77 /// <summary>78 /// Gets the name of the VariableProvider.79 /// </summary>80 internal override string Variable81 {82 get83 {84 return "Microsoft.PowerShell.Core\\Variable";85 }86 }87 88 /// <summary>89 /// Gets the name of the AliasProvider.90 /// </summary>91 internal override string Alias92 {93 get94 {95 return "Microsoft.PowerShell.Core\\Alias";96 }97 }98 99 /// <summary>100 /// Gets the name of the FunctionProvider.101 /// </summary>102 internal override string Function103 {104 get105 {106 return "Microsoft.PowerShell.Core\\Function";107 }108 }109 110 /// <summary>111 /// Gets the name of the FileSystemProvider.112 /// </summary>113 internal override string FileSystem114 {115 get116 {117 return "Microsoft.PowerShell.Core\\FileSystem";118 }119 }120 121 /// <summary>122 /// Gets the name of the RegistryProvider.123 /// </summary>124 internal override string Registry125 {126 get127 {128 return "Microsoft.PowerShell.Core\\Registry";129 }130 }131 }132}133 