IVsFindScope::GetQuery Method (String^, String^)
Visual Studio 2015
Returns a query string
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int GetQuery(
[OutAttribute] String^% pbstrBaseDirectory,
[OutAttribute] String^% pbstrQuery
)
Parameters
- pbstrBaseDirectory
-
Type:
System::String^
[out] The base directory for relative filenames. If value is null, the Find manager's default base is used.
- pbstrQuery
-
Type:
System::String^
[out] The query string.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implement only one of GetQuery or EnumFilenames.
From textfind.idl:
HRESULT IVsFindScope::GetQuery( [out] BSTR * pbstrBaseDirectory, [out,retval] BSTR * pbstrQuery );
Relative (or unspecified) paths in the query are resolved against bstrBaseDirectory. If bstrBaseDirectory is null, the Find manager's default base is used.
Show: