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
'宣言
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: System.String
The search pattern.
- textSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The ITextSnapshot to search.
- findOptions
Type: Microsoft.VisualStudio.Text.Operations.FindOptions
The FindOptions to use during the search.
- textStructureNavigator
Type: Microsoft.VisualStudio.Text.Operations.ITextStructureNavigator
The 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.