Share via


DirectoryModuleCatalog Class

Represets a catalog created from a directory on disk.

Namespace:  Microsoft.Practices.Composite.Modularity
Assembly:  Microsoft.Practices.Composite (in Microsoft.Practices.Composite.dll)

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.InheritanceDemand)> _
<SecurityPermissionAttribute(SecurityAction.LinkDemand)> _
Public Class DirectoryModuleCatalog _
    Inherits ModuleCatalog
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand)]
[SecurityPermissionAttribute(SecurityAction.LinkDemand)]
public class DirectoryModuleCatalog : ModuleCatalog
[SecurityPermissionAttribute(SecurityAction::InheritanceDemand)]
[SecurityPermissionAttribute(SecurityAction::LinkDemand)]
public ref class DirectoryModuleCatalog : public ModuleCatalog
Microsoft.Practices.Composite.Modularity.DirectoryModuleCatalog = function();

Type.createClass(
    'Microsoft.Practices.Composite.Modularity.DirectoryModuleCatalog',
    Microsoft.Practices.Composite.Modularity.ModuleCatalog);

Remarks

The directory catalog will scan the contents of a directory, locating classes that implement IModule and add them to the catalog based on contents in their associated ModuleAttribute. Assemblies are loaded into a new application domain with ReflectionOnlyLoad. The application domain is destroyed once the assemblies have been discovered. The diretory catalog does not continue to monitor the directory after it has created the initialze catalog.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.Composite.Modularity.ModuleCatalog
    Microsoft.Practices.Composite.Modularity.DirectoryModuleCatalog

See Also

DirectoryModuleCatalog Members

Microsoft.Practices.Composite.Modularity Namespace