Share via


FormContentAdorner.CreatePages Method (FormPropertyBag)

 

Retrieves the pages within the page provider.

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

Syntax

public abstract ICollection<AddinPageContent> CreatePages(
    FormPropertyBag propertyBag
)
public:
virtual ICollection<AddinPageContent^>^ CreatePages(
    FormPropertyBag^ propertyBag
) abstract
Public MustOverride Function CreatePages (
    propertyBag As FormPropertyBag
) As ICollection(Of AddinPageContent)

Parameters

Return Value

Type: System.Collections.Generic.ICollection<AddinPageContent>

A ICollection<T> containing one or more addInPageContent instances.

Examples

The following code describes how to derive and implement the CreatePages method. For the complete code sample, see Quickstart: Creating a Hosted Email Adapter.

public override ICollection<AddinPageContent> CreatePages(FormPropertyBag propertyBag)
{
    List<AddinPageContent> list = new List<AddinPageContent>();
    content = new DistributionGroupTabContent(propertyBag)
    {
        Title = Resources.DGTab_Name,
        HelpLink = null,
        HelpLinkText = null
    }; 
    list.Add(content);
    return list;
}

See Also

FormContentAdorner Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel.Adorners Namespace

Return to top