LaunchActivatedEventArgs.Arguments Property
Definition
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.
Gets the arguments that are passed to the application during launch.
public:
property Platform::String ^ Arguments { Platform::String ^ get(); };
winrt::hstring Arguments();
public string Arguments { get; }
var string = launchActivatedEventArgs.arguments;
Public ReadOnly Property Arguments As String
Property Value
Always an empty string in desktop apps.
Remarks
Important
This property is not used and always returns an empty string.
You can retrieve command-line arguments for the current process by calling:
- [C#] Environment.GetCommandLineArgs() (requires full trust to execute)
- [C++] GetCommandLineA function (processenv.h)