The base class for all Contensive add-ons.

Namespace: Contensive.BaseClasses
Assembly: CPBase (in CPBase.dll)


Visual Basic (Declaration)
Public MustInherit Class AddonBaseClass
public abstract class AddonBaseClass
ref class AddonBaseClass abstract 
public  class AddonBaseClass
public  class AddonBaseClass


This is a sample addon created from the AddonBaseClass. To use this add-on, Start a new project and reference CPBase in your Contensive installation. Paste this code into a HelloWorld Class and build the DLL. Copy the DLL into the Contensive\Addon folder. Create a new collection on your site and name it Samples. (Manage Add-ons >> Advanced >> click on collections ) Create a new Addon on your site, name it Hello World, set the Samples collection and set the Dot Net Class name to Contensive.Addons.HelloWorldClass Open the Navigator to Manage Add-ons >> Samples >> and click on Hello World

 Copy Code
 Namespace Contensive.Addons
 'Hello World
 Public Class HelloWorldClass
     Inherits BaseClasses.AddonBaseClass
     Public Overrides Function Execute(ByVal CP As Contensive.BaseClasses.CPBaseClass) As Object
         Return "Hello World 2"
     End Function
End Class
End Namespace

Inheritance Hierarchy


Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also