Partager via


IVsFindScope.GetQuery(String, String) Method

Definition

Returns a query string

public:
 int GetQuery([Runtime::InteropServices::Out] System::String ^ % pbstrBaseDirectory, [Runtime::InteropServices::Out] System::String ^ % pbstrQuery);
int GetQuery([Runtime::InteropServices::Out] std::wstring const & & pbstrBaseDirectory, [Runtime::InteropServices::Out] std::wstring const & & pbstrQuery);
public int GetQuery (out string pbstrBaseDirectory, out string pbstrQuery);
abstract member GetQuery : string * string -> int
Public Function GetQuery (ByRef pbstrBaseDirectory As String, ByRef pbstrQuery As String) As Integer

Parameters

pbstrBaseDirectory
String

[out] The base directory for relative filenames. If value is null, the Find manager's default base is used.

pbstrQuery
String

[out] The query string.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Implement only one of GetQuery or EnumFilenames.

COM Signature

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.

Applies to