IVsSimpleObjectList2::GetSourceContextWithOwnership Method (UInt32, String^, UInt32)
Visual Studio 2015
Returns a source filename and line number for the given list item.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int GetSourceContextWithOwnership( unsigned int index, [OutAttribute] String^% pbstrFilename, [OutAttribute] unsigned int% pulLineNum )
Parameters
- index
-
Type:
System::UInt32
[in] Specifies the index of the list item of interest.
- pbstrFilename
-
Type:
System::String^
[out] Returns a string containing the file name.
- pulLineNum
-
Type:
System::UInt32
[out] Returns a line number associated with the list item.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IVsSimpleObjectList2::GetSourceContextWithOwnership(
[in] ULONG Index,
[out] BSTR *pszFileName,
[out] ULONG *pulLineNum
);
This method is used to display the source file and line number in the find symbol results window. You can return E_NOTIMPL if you don't want to display this information.
Show: