IAppDomainSetup.ConfigurationFile 属性


获取或设置应用程序域的配置文件的名称。Gets or sets the name of the configuration file for an application domain.

 property System::String ^ ConfigurationFile { System::String ^ get(); void set(System::String ^ value); };
public string ConfigurationFile { get; set; }
member this.ConfigurationFile : string with get, set
Public Property ConfigurationFile As String



指定配置文件名称的 StringA String that specifies the name of the configuration file.


配置文件描述应用程序域的搜索规则和配置数据。The configuration file describes the search rules and configuration data for the application domain. 创建应用程序域的主机负责提供此数据,因为有意义的值因情况而异。The host that creates the application domain is responsible for supplying this data because the meaningful values vary from situation to situation.

例如,为每个应用程序、站点和计算机存储 ASP.NET 应用程序的配置数据,而针对每个应用程序、用户和计算机存储可执行文件的配置数据。For example, the configuration data for ASP.NET applications is stored for each application, site, and computer, while the configuration data for an executable is stored for each application, user, and computer. 只有主机知道特定情况下的配置数据细节。Only the host knows the specifics of the configuration data for a particular circumstance.

在完成首次绑定后,不能更改此属性 AppDomainThis property cannot be changed after the AppDomain has finished its first bind.