Looking at IProcessHostPreloadClient's Preload method, there is a string[] parameter which may be provided, described in MSDN as "Data to initialize the application". However, there is no information on where this data comes from, or how we might assign values to it.
查看IProcessHostPreloadClient的预加载方法,可以提供一个string[]参数,在MSDN中被描述为“初始化应用程序的数据”。但是,没有关于这些数据来自何处的信息,也没有关于我们如何为其赋值的信息。
Where does this data come from, and how can we assign values to it?
这些数据来自哪里,我们如何为它们赋值?
1 个解决方案
#1
5
I asked me the same question. I found this answer from http://www.houseofmorten.com/geeky/dotnet/-net-framework-4-0-readme :
我问了我同样的问题。我在http://www.houseofmorten.com/geeky/dotnet/- framework4-0 -readme中找到了这个答案:
The System.Web.Hosting.IProcessHostPreloadClient.Preload method takes a string array as an input parameter. However, there is no way to set this data, and no information is ever passed in this parameter.
System.Web.Hosting.IProcessHostPreloadClient。预加载方法以字符串数组作为输入参数。但是,没有办法设置这个数据,并且在这个参数中不会传递任何信息。
To resolve this issue:
解决这一问题:
Earlier preview versions of the IIS 7.5 autostart feature supported a way to configure one or more string values to pass to the ASP.NET 4 IProcessHostPerloadClient.Preload method. However, that functionality was removed before the final release of Windows 7 and of Windows Server 2008 R2.
早期的IIS 7.5自动启动特性的预览版本支持一种方法,可以配置一个或多个字符串值以传递到ASP。净4 IProcessHostPerloadClient。预加载方法。然而,这个功能在Windows 7和Windows Server 2008 R2最终发布之前就被删除了。
#1
5
I asked me the same question. I found this answer from http://www.houseofmorten.com/geeky/dotnet/-net-framework-4-0-readme :
我问了我同样的问题。我在http://www.houseofmorten.com/geeky/dotnet/- framework4-0 -readme中找到了这个答案:
The System.Web.Hosting.IProcessHostPreloadClient.Preload method takes a string array as an input parameter. However, there is no way to set this data, and no information is ever passed in this parameter.
System.Web.Hosting.IProcessHostPreloadClient。预加载方法以字符串数组作为输入参数。但是,没有办法设置这个数据,并且在这个参数中不会传递任何信息。
To resolve this issue:
解决这一问题:
Earlier preview versions of the IIS 7.5 autostart feature supported a way to configure one or more string values to pass to the ASP.NET 4 IProcessHostPerloadClient.Preload method. However, that functionality was removed before the final release of Windows 7 and of Windows Server 2008 R2.
早期的IIS 7.5自动启动特性的预览版本支持一种方法,可以配置一个或多个字符串值以传递到ASP。净4 IProcessHostPerloadClient。预加载方法。然而,这个功能在Windows 7和Windows Server 2008 R2最终发布之前就被删除了。