Export (0) Print
Expand All

ProcessStartInfo.Verb Property

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

[Visual Basic]
Public Property Verb As String
[C#]
public string Verb {get; set;}
[C++]
public: __property String* get_Verb();
public: __property void set_Verb(String*);
[JScript]
public function get Verb() : String;
public function set Verb(String);

Property Value

The action to take with the file that the process opens. The default is an empty string ("").

Remarks

Each file name extension has its own set of verbs, which can be obtained using the Verbs property. For example, the "print" verb will print a document specified using FileName. The default verb can be specified using an empty string ("").

When you use the Verbs property, you must include the file name extension when you set the value of the FileName property. The file name does not need to have an extension if you manually enter a value for the Verb property.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ProcessStartInfo Class | ProcessStartInfo Members | System.Diagnostics Namespace

Show:
© 2014 Microsoft