Returns a FileVersionInfo representing the version information associated with the specified file.
| C# | Visual Basic |
public static FileVersionInfo GetVersionInfo( string fileName )
Public Shared Function GetVersionInfo ( _ fileName As String _ ) As FileVersionInfo
- fileName (String)
- The fully qualified path and name of the file to retrieve the version information for.
A FileVersionInfo containing information about the file.
If the file information was not found, the FileVersionInfo contains only the name of the file requested.
| Exception | Condition |
|---|---|
| FileNotFoundException | The file specified cannot be found. |