CompilerCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示 对象的集合 Compiler 。 此类不能被继承。
public ref class CompilerCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.Compiler), AddItemName="compiler", CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)]
public sealed class CompilerCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.Compiler), AddItemName="compiler", CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)>]
type CompilerCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class CompilerCollection
Inherits ConfigurationElementCollection
- 继承
- 属性
示例
以下配置文件示例演示如何以声明方式指定类的 CompilerCollection 多个属性的值。
<system.web>
<compilation
tempDirectory=""
debug="False"
strict="False"
explicit="True"
batch="True"
batchTimeout="900"
maxBatchSize="1000"
maxBatchGeneratedFileSize="1000"
numRecompilesBeforeAppRestart="15"
defaultLanguage="vb"
urlLinePragmas="False">
<compilers>
<compiler
compilerOptions=""
extension=".vbs"
language="VB;VBScript"
type="Microsoft.VisualBasic.VBCodeProvider,system,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
warningLevel="1"/>
</compilers>
</compilation>
</system.web>
注解
该 CompilerCollection 元素不引用基础配置文件中的任何实际元素。 它是一个构造,它允许轻松访问 Compiler 它包含的对象。
构造函数
| 名称 | 说明 |
|---|---|
| CompilerCollection() |
初始化 CompilerCollection 类的新实例。 |
属性
方法
显式接口实现
| 名称 | 说明 |
|---|---|
| ICollection.CopyTo(Array, Int32) |
将 ConfigurationElementCollection 复制到数组。 (继承自 ConfigurationElementCollection) |
扩展方法
| 名称 | 说明 |
|---|---|
| AsParallel(IEnumerable) |
启用查询的并行化。 |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。 |
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定类型。 |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。 |