PageProvider.CreateHelpTopicInfo Method ()
Initializes a new instance of the HelpTopicInfo class that provides help information for the top-level tab in the Dashboard.
Namespace: Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly: Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)
Syntax
protected virtual HelpTopicInfo CreateHelpTopicInfo()
protected:
virtual HelpTopicInfo^ CreateHelpTopicInfo()
Protected Overridable Function CreateHelpTopicInfo As HelpTopicInfo
Return Value
Type: Microsoft.WindowsServerSolutions.Administration.ObjectModel.HelpTopicInfo
An instance of HelpTopicInfo.
Remarks
This method must be overridden in a user-defined class.
Examples
The following code example shows how to initialize a new PageProvider in a user-defined class and override the CreateHelpTopicInfo method:
class AddinSample : PageProvider
{
public AddinSample() : base(
new Guid("6bee53dd-4eb8-4aeb-98a1-7af77a8bb449"),
"DisplayName",
"Description")
{
}
protected override Page[] CreatePages()
{
Page pageSample = new AddinPage();
Page[] pages = new Page[]{pageSample};
return pages;
}
protected override HelpTopicInfo CreateHelpTopicInfo()
{
HelpTopicInfo helpTopic = null;
helpTopic = new HelpTopicInfo(@"<path to help .chm file>",
@"/html/076d08c2.html");
return helpTopic;
}
}
See Also
PageProvider Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace
Return to top