WindowSearchBooleanOption Constructor (String, String, Func<Boolean>, Action<Boolean>)
Creates a new instance of a Boolean search option for use by the search control for window search.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
displayText As String, _
tooltip As String, _
getter As Func(Of Boolean), _
setter As Action(Of Boolean) _
)
public WindowSearchBooleanOption(
string displayText,
string tooltip,
Func<bool> getter,
Action<bool> setter
)
public:
WindowSearchBooleanOption(
String^ displayText,
String^ tooltip,
Func<bool>^ getter,
Action<bool>^ setter
)
new :
displayText:string *
tooltip:string *
getter:Func<bool> *
setter:Action<bool> -> WindowSearchBooleanOption
public function WindowSearchBooleanOption(
displayText : String,
tooltip : String,
getter : Func<boolean>,
setter : Action<boolean>
)
Parameters
displayText
Type: StringThe display text for the search option.
tooltip
Type: StringThe tooltip text for the search option.
getter
Type: Func<Boolean>The function which performs the option action and gets the option value. Must return a Boolean value.
setter
Type: Action<Boolean>The 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.
See Also
Reference
WindowSearchBooleanOption Class