IControlPanel.Pages Property
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.
Gets the collection of items registered by a specific module.
public:
property System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::Web::Management::Client::ModulePageInfo ^> ^ Pages { System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::Web::Management::Client::ModulePageInfo ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Web.Management.Client.ModulePageInfo> Pages { get; }
member this.Pages : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Web.Management.Client.ModulePageInfo>
Public ReadOnly Property Pages As ReadOnlyCollection(Of ModulePageInfo)
Property Value
A constructed generic ReadOnlyCollection<T> of ModulePageInfo objects that represent items registered by a specific module.
Examples
The following example searches a module for the page that has the specified assembly name.
private static ModulePageInfo GetModulePageInfo(
IControlPanel controlPanel, string modulePageTypeName) {
foreach (ModulePageInfo page in controlPanel.Pages) {
if (String.Equals(page.PageType.AssemblyQualifiedName,
modulePageTypeName, StringComparison.OrdinalIgnoreCase)) {
return page;
}
}
return null;
}
Remarks
Each item is represented by a ModulePageInfo object.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for