Aracılığıyla paylaş


SystemWebSectionGroup.SiteMap Özellik

Tanım

siteMap Bölümü alır.

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

Özellik Değeri

SiteMapSection

SiteMapSection nesnesi.

Öznitelikler

Örnekler

Aşağıdaki kod örneğinde, nesnenin SiteMapSection var olan bir Web uygulamasının yapılandırma dosyasından nasıl alın aldığı gösterilmektedir.

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

Açıklamalar

SiteMapSection nesnesi, yapılandırma dosyasının siteMap bölümüne başvurur.

Şunlara uygulanır

Ayrıca bkz.