FindData 构造函数 (String, ITextSnapshot, FindOptions, ITextStructureNavigator)

使用指定搜索模式、文本快照、查找选项和文本结构导航器初始化 FindData 的新实例。

命名空间:  Microsoft.VisualStudio.Text.Operations
程序集:  Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)

语法

声明
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
)

参数

  • searchPattern
    类型:String

    搜索模式。

异常

异常 条件
ArgumentNullException

searchPattern 或 textSnapshot 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ArgumentOutOfRangeException

searchPattern 是空字符串。

.NET Framework 安全性

请参阅

参考

FindData 结构

FindData 重载

Microsoft.VisualStudio.Text.Operations 命名空间