IDkmRunningProcessInfoProvider.GetClrVersionOfExecutable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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'.