IPeekBroker::CanTriggerPeekSession Method (ITextView^, String^, Predicate<String^>^)
Visual Studio 2015
Determines whether a Peek session can be triggered at the caret position, without actually triggering it. Note that an ability to trigger a Peek session doesn't mean that when triggered the session will necessarily provide results.
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
bool CanTriggerPeekSession(
ITextView^ textView,
String^ relationshipName,
Predicate<String^>^ isStandaloneFilePredicate
)
Parameters
- textView
-
Type:
Microsoft.VisualStudio.Text.Editor::ITextView^
The ITextView over which to check if a Peek session can be triggered.
- relationshipName
-
Type:
System::String^
The name of the requested relationship to be explored by a Peek session.
- isStandaloneFilePredicate
-
Type:
System::Predicate<String^>^
A predicate used to determine whether given file is a standalone (not part of a project) file.
Return Value
Type: System::BooleanTrue if a Peek session can be triggered at the caret position, false otherwise.
Show: