Compartir a través de


FindData Constructors

Definition

Overloads

FindData(String, ITextSnapshot)

Initializes a new instance of FindData with the specified search pattern and text snapshot.

FindData(String, ITextSnapshot, FindOptions, ITextStructureNavigator)

Initializes a new instance of FindData with the specified search pattern, text snapshot, find options, and text structure navigator.

FindData(String, ITextSnapshot)

Initializes a new instance of FindData with the specified search pattern and text snapshot.

public:
 FindData(System::String ^ searchPattern, Microsoft::VisualStudio::Text::ITextSnapshot ^ textSnapshot);
public:
 FindData(Platform::String ^ searchPattern, Microsoft::VisualStudio::Text::ITextSnapshot ^ textSnapshot);
 FindData(std::wstring const & searchPattern, Microsoft::VisualStudio::Text::ITextSnapshot const & textSnapshot);
public FindData (string searchPattern, Microsoft.VisualStudio.Text.ITextSnapshot textSnapshot);
new Microsoft.VisualStudio.Text.Operations.FindData : string * Microsoft.VisualStudio.Text.ITextSnapshot -> Microsoft.VisualStudio.Text.Operations.FindData
Public Sub New (searchPattern As String, textSnapshot As ITextSnapshot)

Parameters

searchPattern
String

The search pattern.

textSnapshot
ITextSnapshot

The ITextSnapshot to search.

Applies to

FindData(String, ITextSnapshot, FindOptions, ITextStructureNavigator)

Initializes a new instance of FindData with the specified search pattern, text snapshot, find options, and text structure navigator.

public:
 FindData(System::String ^ searchPattern, Microsoft::VisualStudio::Text::ITextSnapshot ^ textSnapshot, Microsoft::VisualStudio::Text::Operations::FindOptions findOptions, Microsoft::VisualStudio::Text::Operations::ITextStructureNavigator ^ textStructureNavigator);
public:
 FindData(Platform::String ^ searchPattern, Microsoft::VisualStudio::Text::ITextSnapshot ^ textSnapshot, Microsoft::VisualStudio::Text::Operations::FindOptions findOptions, Microsoft::VisualStudio::Text::Operations::ITextStructureNavigator ^ textStructureNavigator);
 FindData(std::wstring const & searchPattern, Microsoft::VisualStudio::Text::ITextSnapshot const & textSnapshot, Microsoft::VisualStudio::Text::Operations::FindOptions findOptions, Microsoft::VisualStudio::Text::Operations::ITextStructureNavigator const & textStructureNavigator);
public FindData (string searchPattern, Microsoft.VisualStudio.Text.ITextSnapshot textSnapshot, Microsoft.VisualStudio.Text.Operations.FindOptions findOptions, Microsoft.VisualStudio.Text.Operations.ITextStructureNavigator textStructureNavigator);
new Microsoft.VisualStudio.Text.Operations.FindData : string * Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.Operations.FindOptions * Microsoft.VisualStudio.Text.Operations.ITextStructureNavigator -> Microsoft.VisualStudio.Text.Operations.FindData
Public Sub New (searchPattern As String, textSnapshot As ITextSnapshot, findOptions As FindOptions, textStructureNavigator As ITextStructureNavigator)

Parameters

searchPattern
String

The search pattern.

textSnapshot
ITextSnapshot

The ITextSnapshot to search.

findOptions
FindOptions

The FindOptions to use during the search.

textStructureNavigator
ITextStructureNavigator

The ITextStructureNavigator to use during the search.

Exceptions

searchPattern or textSnapshot is null.

searchPattern is an empty string.

Applies to