IVsFindScope::GetQuery Method (String^, String^)

 

Returns a query string

Namespace:   Microsoft.VisualStudio.TextManager.Interop
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::Int32

If 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.

Return to top
Show: