Retrieves the extension of the file that is referenced in the virtual path.
virtualPath The virtual path.
The file name extension string literal, including the period (.), null, or an empty string ("").
If the virtual path that is passed into the VirtualPathUtility.GetExtension(string) method is "/images/image1.gif", the returned extension is ".gif".