[This is preliminary documentation and is subject to change.]
Converts a full file path to a relative file path, using the [!:directoryName] as the basis for the relative path.
Namespace: MvcTestApp.ModelsAssembly: MvcTestApp (in MvcTestApp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static string relativeImgPathFromFullPath( string fullFilePath, string directoryName ) |
Visual Basic |
---|
Public Shared Function relativeImgPathFromFullPath ( _ fullFilePath As String, _ directoryName As String _ ) As String |
Visual C++ |
---|
public: static String^ relativeImgPathFromFullPath( String^ fullFilePath, String^ directoryName ) |
Parameters
- fullFilePath
- Type: System..::..String
A fully qualified image path name, i.e. 'c:\Users\Administrator\cat.jpg'
- directoryName
- Type: System..::..String
A fully qualified directory name, i.e. 'c:\Users\'