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)
- Type: System.UInt32
[in] Specifies the index of the list item of interest.
- Type: System.IntPtr
[out] Pointer to a null-terminated string containing the file name. You must allocate this buffer and free it on the list's final Release, but you can reuse this buffer for multiple calls to this method.
- Type: System.UInt32%
[out] Specifies a line number.
HRESULT IVsObjectList2::GetSourceContext( [in] ULONG Index, [out] const WCHAR **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.
- 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.