/********************************************************************++ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; using System.Management.Automation; using System.Collections; using System.IO; namespace System.Management.Automation { /// /// Holds the #defines for any special strings used in session state. /// /// internal static class StringLiterals { // constants /// /// The separator used in provider base paths. The format is /// providerId::providerPath. /// internal const string ProviderPathSeparator = "::"; /// /// The default path separator used by the base implementation of the providers. /// /// internal static readonly char DefaultPathSeparator = System.IO.Path.DirectorySeparatorChar; internal static readonly string DefaultPathSeparatorString = DefaultPathSeparator.ToString(); /// /// The alternate path separator used by the base implementation of the providers. /// /// internal static readonly char AlternatePathSeparator = System.IO.Path.AltDirectorySeparatorChar; internal static readonly string AlternatePathSeparatorString = AlternatePathSeparator.ToString(); /// /// The default path prefix for remote paths. This is to mimic /// UNC paths in the file system. /// /// internal const string DefaultRemotePathPrefix = "\\\\"; /// /// The alternate path prefix for remote paths. This is to mimic /// UNC paths in the file system. /// /// internal const string AlternateRemotePathPrefix = "//"; /// /// The character used in a path to indicate the home location. /// internal const string HomePath = "~"; /// /// name of the global variable table in Variable scopes of session state. /// internal const string Global = "GLOBAL"; /// /// Name of the current scope variable table of session state. /// internal const string Local = "LOCAL"; /// /// When prefixing a variable "private" makes the variable /// only visible in the current scope. /// internal const string Private = "PRIVATE"; /// /// When prefixing a variable "script" makes the variable /// global to the scipt but not global to the entire session. /// internal const string Script = "SCRIPT"; /// /// session state string used as resource name in exceptions /// internal const string SessionState = "SessionState"; #if RELATIONSHIP_SUPPORTED // 2004/11/24-JeffJon - Relationships have been removed from the Exchange release /// /// The file extension (including the dot) of the relationship provider description file /// internal const string RelationshipProviderFileExtension = ".relationshipprovider"; #endif /// /// The file extension (including the dot) of an PowerShell script file /// internal const string PowerShellScriptFileExtension = ".ps1"; /// /// The file extension (including the dot) of an PowerShell module file /// internal const string PowerShellModuleFileExtension = ".psm1"; /// /// The file extension (including the dot) of an Mof file /// internal const string PowerShellMofFileExtension = ".mof"; /// /// The file extension (including the dot) of a PowerShell cmdletization file /// internal const string PowerShellCmdletizationFileExtension = ".cdxml"; /// /// The file extension (including the dot) of a PowerShell declarative session configuration file /// internal const string PowerShellDISCFileExtension = ".pssc"; /// /// The file extension (including the dot) of a PowerShell role capability file /// internal const string PowerShellRoleCapabilityFileExtension = ".psrc"; /// /// The file extension (including the dot) of an PowerShell data file /// internal const string PowerShellDataFileExtension = ".psd1"; /// /// The file extension (including the dot) of an workflow file /// internal const string WorkflowFileExtension = ".xaml"; /// /// The file extension (including the dot) of an workflow dependent assembly /// internal const string DependentWorkflowAssemblyExtension = ".dll"; internal const string PowerShellConsoleFileExtension = ".psc1"; /// /// The default verb/noun separator for a command. verb-noun or verb/noun /// internal const char CommandVerbNounSeparator = '-'; /// /// The default verb to try if the command was not resolved /// internal const string DefaultCommandVerb = "get"; /// /// The default extension for a help file relative to its code assembly name. /// internal const string HelpFileExtension = "-Help.xml"; /// /// The language representation of null. /// internal const string DollarNull = "$null"; /// /// The language representation of null. /// internal const string Null = "null"; /// /// The language representation of false. /// internal const string False = "false"; /// /// The language representation of true. /// internal const string True = "true"; /// /// The escape character used in the language. /// internal const string EscapeCharacter = "`"; /// /// The default cmdlet adapter for cmdletization / cdxml modules /// internal const string DefaultCmdletAdapter = "Microsoft.PowerShell.Cmdletization.Cim.CimCmdletAdapter, Microsoft.PowerShell.Commands.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"; } }