The file name literal after the last directory character in virtualPath; otherwise, the last directory name if the last character of virtualPath is a directory or volume separator character.
If the virtual path that is passed into the VirtualPathUtility.GetFileName(string) method is "/images/image1.gif", the returned file name is "image1.gif".