IVsDocOutlineProvider.GetOutlineCaption(VSOUTLINECAPTION, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a document outline caption.
public:
int GetOutlineCaption(Microsoft::VisualStudio::Shell::Interop::VSOUTLINECAPTION nCaptionType, [Runtime::InteropServices::Out] System::String ^ % pbstrCaption);
int GetOutlineCaption(Microsoft::VisualStudio::Shell::Interop::VSOUTLINECAPTION nCaptionType, [Runtime::InteropServices::Out] std::wstring const & & pbstrCaption);
public int GetOutlineCaption (Microsoft.VisualStudio.Shell.Interop.VSOUTLINECAPTION nCaptionType, out string pbstrCaption);
abstract member GetOutlineCaption : Microsoft.VisualStudio.Shell.Interop.VSOUTLINECAPTION * string -> int
Public Function GetOutlineCaption (nCaptionType As VSOUTLINECAPTION, ByRef pbstrCaption As String) As Integer
Parameters
- nCaptionType
- VSOUTLINECAPTION
[in] Caption type. Value is taken from the VSOUTLINECAPTION enumeration.
- pbstrCaption
- String
[out] Pointer to a BSTR that contains the document outline caption.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsDocOutlineProvider::GetOutlineCaption(
[in] VSOUTLINECAPTION nCaptionType,
[out] BSTR* pbstrCaption
);