Class ComponentBase<TContract, TType>
A base class for a Dnn component.
Inheritance
System.Object
ComponentBase<TContract, TType>
Namespace: DotNetNuke.ComponentModel
Assembly: DotNetNuke.dll
Syntax
public abstract class ComponentBase<TContract, TType> : object where TType : class, TContract
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
TType | The component type. |
Properties
| Improve this Doc View SourceInstance
Gets an instance of the Component.
Declaration
public static TContract Instance { get; }
Property Value
Type | Description |
---|---|
TContract |
Methods
| Improve this Doc View SourceRegisterInstance(TContract)
Registers an instance of a component.
Declaration
public static void RegisterInstance(TContract instance)
Parameters
Type | Name | Description |
---|---|---|
TContract | instance | The instance to register. |