FindData Constructor (String, ITextSnapshot, FindOptions, ITextStructureNavigator)
Initializes a new instance of FindData with the specified search pattern, text snapshot, find options, and text structure navigator.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Public Sub New ( _
searchPattern As String, _
textSnapshot As ITextSnapshot, _
findOptions As FindOptions, _
textStructureNavigator As ITextStructureNavigator _
)
public FindData(
string searchPattern,
ITextSnapshot textSnapshot,
FindOptions findOptions,
ITextStructureNavigator textStructureNavigator
)
public:
FindData(
String^ searchPattern,
ITextSnapshot^ textSnapshot,
FindOptions findOptions,
ITextStructureNavigator^ textStructureNavigator
)
new :
searchPattern:string *
textSnapshot:ITextSnapshot *
findOptions:FindOptions *
textStructureNavigator:ITextStructureNavigator -> FindData
public function FindData(
searchPattern : String,
textSnapshot : ITextSnapshot,
findOptions : FindOptions,
textStructureNavigator : ITextStructureNavigator
)
Parameters
searchPattern
Type: StringThe search pattern.
textSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshotThe ITextSnapshot to search.
findOptions
Type: Microsoft.VisualStudio.Text.Operations.FindOptionsThe FindOptions to use during the search.
textStructureNavigator
Type: Microsoft.VisualStudio.Text.Operations.ITextStructureNavigatorThe ITextStructureNavigator to use during the search.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | searchPattern or textSnapshot is nulla null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | searchPattern is an empty string. |
.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.