Module.IsPageEnabled(ModulePageInfo) Method
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.
Returns a value indicating whether the specified page of the module is enabled.
protected public:
virtual bool IsPageEnabled(Microsoft::Web::Management::Client::ModulePageInfo ^ pageInfo);
protected internal virtual bool IsPageEnabled (Microsoft.Web.Management.Client.ModulePageInfo pageInfo);
abstract member IsPageEnabled : Microsoft.Web.Management.Client.ModulePageInfo -> bool
override this.IsPageEnabled : Microsoft.Web.Management.Client.ModulePageInfo -> bool
Protected Friend Overridable Function IsPageEnabled (pageInfo As ModulePageInfo) As Boolean
Parameters
- pageInfo
- ModulePageInfo
The ModulePageInfo instance created in the Initialize(IServiceProvider, ModuleInfo) method.
Returns
true
if the page specified by pageInfo
is enabled; otherwise, false
Examples
The following example shows the use of the IsPageEnabled method.
Trace.WriteLine("Module.IsPageEnabled: "
+ this.IsPageEnabled(myModPgInfo).ToString());