Share via


IDkmRunningProcessInfoProvider.GetClrVersionOfExecutable 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(Microsoft::VisualStudio::Debugger::DefaultPort::DkmTransportConnection ^ connection, System::String ^ exePath);
public string GetClrVersionOfExecutable (Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection connection, string exePath);
abstract member GetClrVersionOfExecutable : Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection * string -> string
Public Function GetClrVersionOfExecutable (connection As DkmTransportConnection, exePath As String) As String

Parameters

connection
DkmTransportConnection

[In] This represents a connection between the monitor and the IDE. It can either be a local connection if the monitor is running in the same process as the IDE, or it can be a remote connection. In the monitor process, there is only one connection.

exePath
String

[In] Path to the executable file.

Returns

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

Applies to