Sdílet prostřednictvím


DkmTransportConnection.GetClrVersionOfExecutable(String) Method

Definition

Provides the version string for the CLR that the debugger expects a given executable to load. The return value is based on the content of the executable's PE header (if the exe is managed), the executable's config file, CLR environment variables, and loader policy in the registry. The return value may be incorrect, especially in the case of a native executable.

public:
 System::String ^ GetClrVersionOfExecutable(System::String ^ ExePath);
public:
 Platform::String ^ GetClrVersionOfExecutable(Platform::String ^ ExePath);
std::wstring GetClrVersionOfExecutable(std::wstring const & ExePath);
public string GetClrVersionOfExecutable (string ExePath);
member this.GetClrVersionOfExecutable : string -> string
Public Function GetClrVersionOfExecutable (ExePath As String) As String

Parameters

ExePath
String

[In] Path to the executable file.

Returns

[Out] Version string of the CLR. Ex:'v4.0.30319'.

Applies to