System.Diagnostics.ProcessStartInfo.Verb Property

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

Syntax

[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.NotifyParentProperty(true)]
[System.ComponentModel.TypeConverter("System.Diagnostics.Design.VerbConverter, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.Diagnostics.MonitoringDescription("The verb to apply to a used document.")]
public string Verb { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Each file name extension has its own set of verbs, which can be obtained by using the ProcessStartInfo.Verbs property. For example, the "print" verb will print a document specified by using ProcessStartInfo.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 ProcessStartInfo.Verbs property.

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

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0