Module.IsPageEnabled(ModulePageInfo) Method

Definition

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

Applies to