Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

CodeSubDirectoriesCollection Class

Represents a collection of CodeSubDirectory objects. This class cannot be inherited.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
public ref class CodeSubDirectoriesCollection sealed : public ConfigurationElementCollection
public final class CodeSubDirectoriesCollection extends ConfigurationElementCollection
public final class CodeSubDirectoriesCollection extends ConfigurationElementCollection
Not applicable.

The CodeSubDirectoriesCollection defines an ordered collection of subdirectories containing files compiled at run time. You can have any number of subdirectories. This collection refers to the codeSubDirectories element of the compilation section of the configuration file. The collection will only provide the items defined in the root Web.config or higher. This collection is a construct that allows easy access to the compilation information it contains.

The following configuration-file example defines an ordered collection of assembly subdirectories. This example shows how to declaratively specify values for several properties of the CodeSubDirectoriesCollection class. The subdirectories are listed in the order in which the code must be compiled to meet its dependencies.

      <add directoryName="mySubDir1"/>
      <add directoryName="mySubDir2"/>
      <add codeSubDirectory directoryName="mySubDir3"/>
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.