Partilhar via


SystemWebSectionGroup.SiteMap Propriedade

Definição

Obtém a seção 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

Valor da propriedade

SiteMapSection

O objeto SiteMapSection.

Atributos

Exemplos

O exemplo de código a seguir mostra como obter o SiteMapSection objeto do arquivo de configuração de um aplicativo Web existente.

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

Comentários

O SiteMapSection objeto refere-se à siteMap seção do arquivo de configuração.

Aplica-se a

Confira também