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) |
擴充方法
| Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
| OfType<TResult>(IEnumerable) |
根據指定的型別來篩選 IEnumerable 的項目。 |
| AsParallel(IEnumerable) |
啟用查詢的平行化作業。 |
| AsQueryable(IEnumerable) |
將 IEnumerable 轉換成 IQueryable。 |