GetFileLanguage Method (path)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetFileLanguage Method (path)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerGetFileLanguage(String)
Gets the language string of the path specified using the format that the installer expects to find them in in the database.
Declaration Syntax
C# Visual Basic Visual C++ F#
public static string GetFileLanguage(
	string path
)
Public Shared Function GetFileLanguage ( 
	path As String
) As String
public:
static String^ GetFileLanguage(
	String^ path
)
static member GetFileLanguage : 
        path : string -> string 
Parameters
path (String)
Path to the file
Return Value
String
Language string in the form of a decimal language ID, or an empty string if the file does not contain a language ID
Remarks

Win32 MSI API: MsiGetFileVersion

Exceptions
Exception Condition
FileNotFoundException the file does not exist or could not be read

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)