Udostępnij za pośrednictwem


IVsIntellisenseHost.GetSubjectText(String) Method

Definition

Gets the text upon which IntelliSense operates.

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

Parameters

pbstrSubjectText
String

[out, retval] The string containing the subject text.

Returns

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

Remarks

The subject text is considered to be the contents of the context buffer if GetHostFlags()_returns flags containing IHF_NOSEPARATESUBJECT and this method should return E_NOTIMPL.

C++

From singlefileeditor.idl:

HRESULT IVsIntellisenseHost::GetSubjectText([out, retval] BSTR *pbstrSubjectText);

Applies to