Partager via


Page.CreateContent Method ()

 

Called by the Dashboard to create content for the page.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Syntax

protected abstract PageContent CreateContent()
protected:
virtual PageContent^ CreateContent() abstract
Protected MustOverride Function CreateContent As PageContent

Return Value

Type: Microsoft.WindowsServerSolutions.Administration.ObjectModel.PageContent

An instance of PageContent.

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.

Examples

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);
    }
}

See Also

Page Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top