The base class for all Contensive add-ons.


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

Syntax

Visual Basic (Declaration)
Public MustInherit Class AddonBaseClass
C#
public abstract class AddonBaseClass
C++
ref class AddonBaseClass abstract 
J#
public  class AddonBaseClass
JScript
public  class AddonBaseClass

Remarks

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

System.Object
   Contensive.BaseClasses.AddonBaseClass

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