Page.CreateContent Method
Called by the Administration Console to create content for the page.
Namespace: Microsoft.EssentialBusinessServer.Console.ObjectModel
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)
Usage
Syntax
'Declaration
Protected MustOverride Function CreateContent As PageContent
protected abstract PageContent CreateContent ()
protected:
virtual PageContent^ CreateContent () abstract
protected abstract PageContent CreateContent ()
protected abstract function CreateContent () : PageContent
Return Value
An instance of PageContent.
Example
The following code example shows how to initialize a new Page in a user-defined class and override the CreateContent method:
class AddinSample : Page
{
public AddinSample() : base(new Guid("6bee53dd-4eb8-4aeb-98a1-7af77a8bb449"), "DisplayName", "Description")
{
}
protected override PageContent CreateContent()
{
return PageContent.Create<TBusinessObject>(
listProvider,
listColumns,
listGroupings,
tasks);
}
}
Remarks
A PageContent object is created by calling one of the Create methods of PageContent.
This method must be overridden in a user-defined class.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008 64-bit Edition, Windows Vista 64-bit Edition, Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium
Target Platforms
Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium
See Also
Reference
Page Class
Page Members
Microsoft.EssentialBusinessServer.Console.ObjectModel Namespace
ListProvider Generic Class
ListColumnCollection Generic Class
ListGroupingCollection Generic Class
TaskCollection