Partager via


SystemWebSectionGroup.SiteMap Propriété

Définition

Obtient la section siteMap.

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

Valeur de propriété

SiteMapSection

Objet SiteMapSection.

Attributs

Exemples

L’exemple de code suivant montre comment obtenir l’objet SiteMapSection à partir du fichier de configuration d’une application web existante.

// 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)

Remarques

L’objet SiteMapSection fait référence à la section siteMap du fichier de configuration.

S’applique à

Voir aussi