CodeSubDirectoriesCollection クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
CodeSubDirectory オブジェクトのコレクションを表します。 このクラスは継承できません。
public ref class CodeSubDirectoriesCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.CodeSubDirectory), CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)]
public sealed class CodeSubDirectoriesCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.CodeSubDirectory), CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)>]
type CodeSubDirectoriesCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class CodeSubDirectoriesCollection
Inherits ConfigurationElementCollection
- 継承
- 属性
例
次の構成ファイルの例では、アセンブリ サブディレクトリの順序付けられたコレクションを定義します。 この例では、 CodeSubDirectoriesCollection クラスのいくつかのプロパティの値を宣言によって指定する方法を示します。 サブディレクトリは、依存関係を満たすためにコードをコンパイルする必要がある順序で一覧表示されます。
<system.web>
<compilation>
<codeSubDirectories>
<add directoryName="mySubDir1"/>
<add directoryName="mySubDir2"/>
<add codeSubDirectory directoryName="mySubDir3"/>
</codeSubDirectories>
</compilation>
</system.web>
注釈
CodeSubDirectoriesCollectionは、実行時にコンパイルされたファイルを含むサブディレクトリの順序付けられたコレクションを定義します。 任意の数のサブディレクトリを持つことができます。 このコレクションは、構成ファイルの codeSubDirectories セクションのcompilation要素を参照します。 コレクションは、ルート Web.config 以降で定義されている項目のみを提供します。 このコレクションは、含まれているコンパイル情報に簡単にアクセスできるコンストラクトです。
コンストラクター
| 名前 | 説明 |
|---|---|
| CodeSubDirectoriesCollection() |
CodeSubDirectoriesCollection クラスの新しいインスタンスを初期化します。 |
プロパティ
メソッド
明示的なインターフェイスの実装
| 名前 | 説明 |
|---|---|
| ICollection.CopyTo(Array, Int32) |
ConfigurationElementCollection を配列にコピーします。 (継承元 ConfigurationElementCollection) |
拡張メソッド
| 名前 | 説明 |
|---|---|
| AsParallel(IEnumerable) |
クエリの並列化を有効にします。 |
| AsQueryable(IEnumerable) |
IEnumerable を IQueryableに変換します。 |
| Cast<TResult>(IEnumerable) |
IEnumerable の要素を指定した型にキャストします。 |
| OfType<TResult>(IEnumerable) |
指定した型に基づいて、IEnumerable の要素をフィルター処理します。 |