ControlPanelCategoryInfo.Performance Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the string "Performance".
public: static initonly System::String ^ Performance;
public static readonly string Performance;
staticval mutable Performance : string
Public Shared ReadOnly Performance As String
Field Value
Examples
The following example adds the module page to the Performance category.
internal class DemoModule : Microsoft.Web.Management.Client.Module {
public DemoModule()
: base() {
}
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) {
base.Initialize(serviceProvider, moduleInfo);
SH.SP = serviceProvider;
IControlPanel controlPanel = (IControlPanel)GetService(typeof(IControlPanel));
ModulePageInfo modulePageInfo = new ModulePageInfo(this,
typeof(DemoPage), // pageType
"Sample ModulePage Info Title", // Title
"Sample ModulePage Description", // Description
rLoadImg.loadImgs("rSmall.bmp"), // small image
rLoadImg.loadImgs("rLarge.bmp"), // large image
"ModulePage Sample long description" // long description
);
controlPanel.RegisterPage(modulePageInfo);
// Category
controlPanel.RegisterPage(
ControlPanelCategoryInfo.Performance, modulePageInfo);
// Area
controlPanel.RegisterPage(ControlPanelCategoryInfo.Iis,
modulePageInfo);
}
} // end of DemoModule class
Remarks
The RegisterPage(String, ModulePageInfo) method uses this string to specify the Performance category when it registers a new feature in IIS Manager.