Partager via


CommandInvocationIntrinsics.ExpandString(String) Method

Definition

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.

Applies to