VirtualFileSystemGetCaption Method |
Determine the caption for a script.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic string GetCaption(
string scriptPath
)
Public Function GetCaption (
scriptPath As String
) As String
public:
virtual String^ GetCaption(
String^ scriptPath
) sealed
Parameters
- scriptPath String
-
The path of the script which is always in canonical form as returned by the Combine method.
Return Value
String
The short form of the script's path for display by the IDE.
Implements
IVirtualFileSystemGetCaption(String)
Remarks
Implement this method to get the script's caption.
Example
IVirtualFileSystem implementation which uses the normal file system.
public string GetCaption(string scriptPath)
{
return Path.GetFileName(scriptPath);
}
Function GetCaption(ByVal scriptPath As String) As String
Return Path.GetFileName(scriptPath)
End Function
See Also