IWebFileCtxService.ConvertToAppRelPath Method

Converts a path to an application-relative path.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

‘선언
Function ConvertToAppRelPath ( _
    pszFilePath As String, _
    <OutAttribute> ByRef pbstrAppRelPath As String _
) As Integer
‘사용 방법
Dim instance As IWebFileCtxService
Dim pszFilePath As String
Dim pbstrAppRelPath As String
Dim returnValue As Integer

returnValue = instance.ConvertToAppRelPath(pszFilePath, _
    pbstrAppRelPath)
int ConvertToAppRelPath(
    string pszFilePath,
    out string pbstrAppRelPath
)
int ConvertToAppRelPath(
    [InAttribute] String^ pszFilePath, 
    [OutAttribute] String^% pbstrAppRelPath
)
abstract ConvertToAppRelPath : 
        pszFilePath:string * 
        pbstrAppRelPath:string byref -> int 
function ConvertToAppRelPath(
    pszFilePath : String, 
    pbstrAppRelPath : String
) : int

Parameters

  • pszFilePath
    Type: System.String
    [in] Pointer to a string containing the path to convert.
  • pbstrAppRelPath
    Type: System.String%
    [out] Pointer to a string containing the calculated application-relative path.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IWebFileCtxService Interface

IWebFileCtxService Members

Microsoft.VisualStudio.Shell.Interop Namespace