GetExtension Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetExtension() method gets the extension of the file represented by the supplied path.
If the path represents a URL, any slash (/) or question mark (?) character and all the characters that follow it will be trimmed from the returned string.