Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class ModuleDependencyAttribute

Attribute to define that an IInitializableModule depends on another module to be initialized first.

Inheritance
System.Object
ModuleDependencyAttribute
Namespace: EPiServer.Framework
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public sealed class ModuleDependencyAttribute : Attribute

Constructors

ModuleDependencyAttribute(Type)

Initializes a new instance of the ModuleDependencyAttribute class.

Declaration
public ModuleDependencyAttribute(Type dependency)
Parameters
Type Name Description
System.Type dependency

The type that you are depending on.

ModuleDependencyAttribute(Type[])

Initializes a new instance of the ModuleDependencyAttribute class.

Declaration
public ModuleDependencyAttribute(params Type[] dependencies)
Parameters
Type Name Description
System.Type[] dependencies

The types that you are depending on.

Properties

Dependencies

Gets the dependencies defined by this attribute.

Declaration
public ICollection<Type> Dependencies { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<System.Type>

The dependencies.

Extension Methods