Sets the startup flags and the host configuration file that will be used to start the runtime. This method supersedes the use of the startupFlags parameter in the CorBindToRuntimeEx and CorBindToRuntimeHost functions.
This method returns the following specific HRESULT as well as HRESULT errors that indicate method failure.
The method completed successfully.
A multithreaded host should synchronize calls to this method. Otherwise, thread A might call the SetStartupFlags method after thread B completes a call to SetStartupFlags and before thread B starts the runtime.
Platforms: See .NET Framework System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 4