SystemWebSectionGroup.SiteMap 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 siteMap
section.
public:
property System::Web::Configuration::SiteMapSection ^ SiteMap { System::Web::Configuration::SiteMapSection ^ get(); };
[System.Configuration.ConfigurationProperty("siteMap")]
public System.Web.Configuration.SiteMapSection SiteMap { get; }
[<System.Configuration.ConfigurationProperty("siteMap")>]
member this.SiteMap : System.Web.Configuration.SiteMapSection
Public ReadOnly Property SiteMap As SiteMapSection
Property Value
The SiteMapSection object.
- Attributes
Examples
The following code example shows how to obtain the SiteMapSection object from the configuration file of an existing Web application.
// Get the siteMap section.
SiteMapSection siteMap =
systemWeb.SiteMap;
// Read section information.
info =
siteMap.SectionInformation;
name = info.SectionName;
type = info.Type;
declared = info.IsDeclared.ToString();
msg = String.Format(
"Name: {0}\nDeclared: {1}\nType: {2}\n",
name, declared, type);
' Get the siteMap section.
Dim siteMap As SiteMapSection = _
systemWeb.SiteMap
' Read section information.
info = siteMap.SectionInformation
name = info.SectionName
type = info.Type
declared = info.IsDeclared.ToString()
msg = String.Format("Name: {0}" + _
ControlChars.Lf + "Declared: {1}" + _
ControlChars.Lf + "Type: {2}" + _
ControlChars.Lf, name, declared, type)
Remarks
The SiteMapSection object refers to the siteMap
section of the configuration file.
Applies to
See also
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.