Aracılığıyla paylaş


SystemWebSectionGroup.WebParts Özellik

Tanım

webParts Bölümü alır.

public:
 property System::Web::Configuration::WebPartsSection ^ WebParts { System::Web::Configuration::WebPartsSection ^ get(); };
[System.Configuration.ConfigurationProperty("webParts")]
public System.Web.Configuration.WebPartsSection WebParts { get; }
[<System.Configuration.ConfigurationProperty("webParts")>]
member this.WebParts : System.Web.Configuration.WebPartsSection
Public ReadOnly Property WebParts As WebPartsSection

Özellik Değeri

WebPartsSection

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

Öznitelikler

Örnekler

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

// Get the webParts section.
WebPartsSection webParts =
    systemWeb.WebParts;
// Read section information.
info =
    webParts.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 webParts section.
Dim webParts _
As WebPartsSection = systemWeb.WebParts
' Read section information.
info = webParts.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)

Şunlara uygulanır

Ayrıca bkz.