Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
CommandInvocationIntrinsics.ExpandString(String) Method
Definition
- Namespace:
- System.Management.Automation
- Assembly:
- System.Management.Automation.dll
- Package:
- Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
- Package:
- System.Management.Automation v7.4.15
- Package:
- System.Management.Automation v7.5.6
- Package:
- System.Management.Automation v7.6.1
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a string with all of the variable and expression substitutions done.
public:
System::String ^ ExpandString(System::String ^ source);
public:
Platform::String ^ ExpandString(Platform::String ^ source);
std::wstring ExpandString(std::wstring const & source);
public string ExpandString(string source);
member this.ExpandString : string -> string
Public Function ExpandString (source As String) As String
Parameters
- source
- String
The string to expand.
Returns
The expanded string.
Exceptions
Thrown if a parse exception occurred during subexpression substitution.
