app.config说明 [英] app.config description

查看:93
本文介绍了app.config说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道对 app.config 文件的所有可能的条目的完整/详尽的说明/描述,选项范围等?

我知道连接字符串条目.很好.

除了这些,我还有另外两个部分:

Does anyone know of a complete, exhausting specification/description of all possible entries, range of options, etc to the app.config file?

I am aware of connection strings entries. That's fine.

Aside from those I have two more sections:

<身体>
< configSections >
< sectionGroup 名称 = " userSettings" 类型 = "System.Configuration.UserSettingsGroup,System,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089" >
< section 名称 = " ComeAndGet.Properties.Settings" 类型 "System.Configuration.ClientSettingsSection,系统,版本= 2.0.0.0,文化=中性,PublicKeyToken = b77a5c561934e089" allowExeDefinition = &; MachineToLocalUser"" requirePermission =
</ sectionGroup >
</ configSections >
<configSections> 
        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > 
            <section name="ComeAndGet.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> 
        </sectionGroup> 
    </configSections> 

推荐答案

您看到的所有类型(版本,文化,PublicKeyToken等)都用于唯一标识.NET程序集.两个强命名程序集可以具有相同的PE文件名,但是使用.NET类型的附加元数据可以将它们识别为不同的.我建议您阅读以下Wiki,它回答了许多与.NET程序集有关的问题.

http://en.wikipedia.org/wiki/.NET_assembly



配置部分分为两种类型:
  • applicationSettings
  • userSettings
Everything you see in type (Version, Culture, PublicKeyToken, etc..) is used to uniquely identify a .NET assembly. Two strong named assemblies can have the same PE filename, but with that additional meta-data that you see in type .NET can recognize them as being different. I recommend you read the following wiki which answers a lot of your .NET assembly related questions.

http://en.wikipedia.org/wiki/.NET_assembly



Configuration sections fall under two types:
  • applicationSettings
  • userSettings
  • MachineToApplication = ConfigurationSection可以在Machine.config中定义 文件或客户端应用程序目录中的Exe.config文件中. 这是默认值. MachineToLocalUser =可以在Machine.config MachineToLocalUser 文件,在客户端应用程序目录中的Exe.config文件中,在 漫游用户目录中或 本地用户目录中的User.config文件. MachineToRoamingUser = ConfigurationSection可以在Machine.config文件中定义, 在客户端应用程序目录中的Exe.config文件中,或 漫游用户目录中的User.config文件.
  • MachineOnly = the ConfigurationSection can be defined only in the Machine.config file.  
  • MachineToApplication = the ConfigurationSection can be defined either in the Machine.config file or in the Exe.config file in the client application directory. This is the default value. 
  • MachineToLocalUser = the ConfigurationSection can be defined in the Machine.config MachineToLocalUser file, in the Exe.config file in the client application directory, in the User.config file in the roaming user directory, or in the User.config file in the local user directory. 
  • MachineToRoamingUser = the ConfigurationSection can be defined in the Machine.config file, in the Exe.config file in the client application directory, or in the User.config file in the roaming user directory.  


这篇关于app.config说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆