xtd 0.2.0
Loading...
Searching...
No Matches

◆ verb() [1/2]

xtd::string xtd::diagnostics::process_start_info::verb ( ) const
noexcept

Gets the verb to use when opening the application or document specified by the FileName property.

Returns
The action to take with the file that the process opens. The default is an empty string (""), which signifies no action.
Remarks
Each file name extension has its own set of verbs, which can be obtained by using the Verbs property. For example, the "print" verb will print a document specified by using FileName. The default verb can be specified by using an empty string (""). Examples of verbs are "Edit", "Open", "OpenAsReadOnly", "Print", and "Printto". You should use only verbs that appear in the set of verbs returned by the xtd::diagnostics::process_start_info::verbs property.
When you use the xtd::diagnostics::process_start_info::verb property, you must include the file name extension when you set the value of the xtd::diagnostics::process_start_info::file_name property. The file name does not need to have an extension if you manually enter a value for the xtd::diagnostics::process_start_info::verb property.