IVsFindScope.GetQuery Method
Returns a query string
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
‘선언
Function GetQuery ( _
<OutAttribute> ByRef pbstrBaseDirectory As String, _
<OutAttribute> ByRef pbstrQuery As String _
) As Integer
‘사용 방법
Dim instance As IVsFindScope
Dim pbstrBaseDirectory As String
Dim pbstrQuery As String
Dim returnValue As Integer
returnValue = instance.GetQuery(pbstrBaseDirectory, _
pbstrQuery)
int GetQuery(
out string pbstrBaseDirectory,
out string pbstrQuery
)
int GetQuery(
[OutAttribute] String^% pbstrBaseDirectory,
[OutAttribute] String^% pbstrQuery
)
abstract GetQuery :
pbstrBaseDirectory:string byref *
pbstrQuery:string byref -> int
function GetQuery(
pbstrBaseDirectory : String,
pbstrQuery : String
) : int
Parameters
- pbstrBaseDirectory
Type: System.String%
[out]
- pbstrQuery
Type: System.String%
[out]
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
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 nulla null reference (Nothing in Visual Basic), the Find manager's default base is used.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.