IVsNavigableLocationResolver.GetPathFromLocation Method

Get the path of the specified location.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
Function GetPathFromLocation ( _
    dwReserved As UInteger, _
    ptsBase As TextSpan(), _
    pBuffer As IVsTextLines, _
    pszDisplayText As String, _
    <OutAttribute> ByRef dwOutFlags As UInteger, _
    <OutAttribute> ByRef pbstrPath As String _
) As Integer
int GetPathFromLocation(
    uint dwReserved,
    TextSpan[] ptsBase,
    IVsTextLines pBuffer,
    string pszDisplayText,
    out uint dwOutFlags,
    out string pbstrPath
)
int GetPathFromLocation(
    [InAttribute] unsigned int dwReserved, 
    [InAttribute] array<TextSpan>^ ptsBase, 
    [InAttribute] IVsTextLines^ pBuffer, 
    [InAttribute] String^ pszDisplayText, 
    [OutAttribute] unsigned int% dwOutFlags, 
    [OutAttribute] String^% pbstrPath
)
abstract GetPathFromLocation : 
        dwReserved:uint32 * 
        ptsBase:TextSpan[] * 
        pBuffer:IVsTextLines * 
        pszDisplayText:string * 
        dwOutFlags:uint32 byref * 
        pbstrPath:string byref -> int
function GetPathFromLocation(
    dwReserved : uint, 
    ptsBase : TextSpan[], 
    pBuffer : IVsTextLines, 
    pszDisplayText : String, 
    dwOutFlags : uint, 
    pbstrPath : String
) : int

Parameters

  • dwOutFlags
    Type: System.UInt32%

    [out] true if current location is a URL

  • pbstrPath
    Type: System.String%

    [out] As much of a path as possible or just the file name.

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 textmgr.idl:

HRESULT IVsNavigableLocationResolver::GetPathFromLocation(

   [in] DWORD dwReserved,

   [in] TextSpan *ptsBase,

   [in] IVsTextLines *pBuffer,

   [in] const WCHAR *pszDisplayText,

   [out] NavigableLocationResolverFlags *dwOutFlags,

   [out,retval] BSTR * pbstrPath

);

.NET Framework Security

See Also

Reference

IVsNavigableLocationResolver Interface

Microsoft.VisualStudio.TextManager.Interop Namespace