次の方法で共有


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

Exceptions

Exception Condition
ArgumentNullException

searchPattern or textSnapshot is nulla null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

searchPattern is an empty string.

.NET Framework Security

See Also

Reference

FindData Structure

FindData Overload

Microsoft.VisualStudio.Text.Operations Namespace