WindowSearchCommandOption Constructor
Creates a new instance of a command option for use by the search control for window search.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Sub New ( _
displayText As String, _
tooltip As String, _
commandAction As Action _
)
public WindowSearchCommandOption(
string displayText,
string tooltip,
Action commandAction
)
public:
WindowSearchCommandOption(
String^ displayText,
String^ tooltip,
Action^ commandAction
)
new :
displayText:string *
tooltip:string *
commandAction:Action -> WindowSearchCommandOption
public function WindowSearchCommandOption(
displayText : String,
tooltip : String,
commandAction : Action
)
Parameters
displayText
Type: System.StringThe display text for the search option.
tooltip
Type: System.StringThe tooltip text for the search option.
commandAction
Type: System.ActionThe function which performs the option action.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.