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
'Declaration
Function ConvertToAppRelPath ( _
pszFilePath As String, _
<OutAttribute> ByRef pbstrAppRelPath As String _
) As Integer
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
- 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.