PagesSection Klas
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Biedt programmatische toegang tot de paginasectie van het configuratiebestand. Deze klasse kan niet worden overgenomen.
public ref class PagesSection sealed : System::Configuration::ConfigurationSection
public sealed class PagesSection : System.Configuration.ConfigurationSection
type PagesSection = class
inherit ConfigurationSection
Public NotInheritable Class PagesSection
Inherits ConfigurationSection
- Overname
Voorbeelden
In dit voorbeeld ziet u hoe u waarden declaratief opgeeft voor verschillende kenmerken van de pages sectie, die ook kunnen worden geopend als leden van de PagesSection klasse.
In het volgende configuratiebestandsvoorbeeld ziet u hoe u waarden declaratief opgeeft voor de paginasectie .
<system.web>
<pages buffer="true"
enableSessionState="true"
enableViewState="true"
enableViewStateMac="true"
autoEventWireup="true"
validateRequest="true"
asyncTimeout="45"
maintainScrollPositionOnPostBack = "False"
viewStateEncryptionMode = "Auto">
<namespaces>
<add namespace="System" />
<add namespace="System.Collections" />
<add namespace="System.Collections.Specialized" />
<add namespace="System.ComponentModel" />
<add namespace="System.Configuration" />
<add namespace="System.Web" />
</namespaces>
<controls>
<clear />
<remove tagPrefix="MyTags" />
<!-- Searches all linked assemblies for the namespace -->
<add tagPrefix="MyTags1" namespace=" MyNameSpace "/>
<!-- Uses a specified assembly -->
<add tagPrefix="MyTags2" namespace="MyNameSpace"
assembly="MyAssembly"/>
<!-- Uses the specified source for the user control -->
<add tagprefix="MyTags3" tagname="MyCtrl"
src="MyControl.ascx"/>
</controls>
<tagMapping>
<clear />
<add
tagTypeName=
"System.Web.UI.WebControls.WebParts.WebPartManager"
mappedTagTypeName=
"Microsoft.Sharepoint.WebPartPartManager,
MSPS.Web.dll, Version='2.0.0.0'"
/>
<remove tagTypeName="SomeOtherNS.Class, Assemblyname" />
</tagMapping>
</pages>
</system.web>
In het volgende codevoorbeeld ziet u hoe u de PagesSection klasse gebruikt.
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Configuration;
using System.Web.Configuration;
using System.Web.UI;
namespace Samples.Aspnet.SystemWebConfiguration
{
class UsingPagesSection
{
public static void Main()
{
try
{
// Get the Web application configuration.
Configuration configuration =
WebConfigurationManager.OpenWebConfiguration("");
// Get the section.
PagesSection pagesSection =
(PagesSection)configuration.GetSection("system.web/pages");
// Get the AutoImportVBNamespace property.
Console.WriteLine("AutoImportVBNamespace: '{0}'",
pagesSection.Namespaces.AutoImportVBNamespace.ToString());
// Set the AutoImportVBNamespace property.
pagesSection.Namespaces.AutoImportVBNamespace = true;
// Get all current Namespaces in the collection.
for (int i = 0; i < pagesSection.Namespaces.Count; i++)
{
Console.WriteLine(
"Namespaces {0}: '{1}'", i,
pagesSection.Namespaces[i].Namespace);
}
// Create a new NamespaceInfo object.
System.Web.Configuration.NamespaceInfo namespaceInfo =
new System.Web.Configuration.NamespaceInfo("System");
// Set the Namespace property.
namespaceInfo.Namespace = "System.Collections";
// Execute the Add Method.
pagesSection.Namespaces.Add(namespaceInfo);
// Add a NamespaceInfo object using a constructor.
pagesSection.Namespaces.Add(
new System.Web.Configuration.NamespaceInfo(
"System.Collections.Specialized"));
// Execute the RemoveAt method.
pagesSection.Namespaces.RemoveAt(0);
// Execute the Clear method.
pagesSection.Namespaces.Clear();
// Execute the Remove method.
pagesSection.Namespaces.Remove("System.Collections");
// Get the current AutoImportVBNamespace property value.
Console.WriteLine(
"Current AutoImportVBNamespace value: '{0}'",
pagesSection.Namespaces.AutoImportVBNamespace);
// Set the AutoImportVBNamespace property to false.
pagesSection.Namespaces.AutoImportVBNamespace = false;
// Get the current PageParserFilterType property value.
Console.WriteLine(
"Current PageParserFilterType value: '{0}'",
pagesSection.PageParserFilterType);
// Set the PageParserFilterType property to
// "MyNameSpace.AllowOnlySafeControls".
pagesSection.PageParserFilterType =
"MyNameSpace.AllowOnlySafeControls";
// Get the current Theme property value.
Console.WriteLine(
"Current Theme value: '{0}'",
pagesSection.Theme);
// Set the Theme property to "MyCustomTheme".
pagesSection.Theme = "MyCustomTheme";
// Get the current EnableViewState property value.
Console.WriteLine(
"Current EnableViewState value: '{0}'",
pagesSection.EnableViewState);
// Set the EnableViewState property to false.
pagesSection.EnableViewState = false;
// Get the current CompilationMode property value.
Console.WriteLine(
"Current CompilationMode value: '{0}'",
pagesSection.CompilationMode);
// Set the CompilationMode property to CompilationMode.Always.
pagesSection.CompilationMode = CompilationMode.Always;
// Get the current ValidateRequest property value.
Console.WriteLine(
"Current ValidateRequest value: '{0}'",
pagesSection.ValidateRequest);
// Set the ValidateRequest property to true.
pagesSection.ValidateRequest = true;
// Get the current EnableViewStateMac property value.
Console.WriteLine(
"Current EnableViewStateMac value: '{0}'",
pagesSection.EnableViewStateMac);
// Set the EnableViewStateMac property to true.
pagesSection.EnableViewStateMac = true;
// Get the current AutoEventWireup property value.
Console.WriteLine(
"Current AutoEventWireup value: '{0}'",
pagesSection.AutoEventWireup);
// Set the AutoEventWireup property to false.
pagesSection.AutoEventWireup = false;
// Get the current MaxPageStateFieldLength property value.
Console.WriteLine(
"Current MaxPageStateFieldLength value: '{0}'",
pagesSection.MaxPageStateFieldLength);
// Set the MaxPageStateFieldLength property to 4098.
pagesSection.MaxPageStateFieldLength = 4098;
// Get the current UserControlBaseType property value.
Console.WriteLine(
"Current UserControlBaseType value: '{0}'",
pagesSection.UserControlBaseType);
// Set the UserControlBaseType property to
// "MyNameSpace.MyCustomControlBaseType".
pagesSection.UserControlBaseType =
"MyNameSpace.MyCustomControlBaseType";
// Get all current Controls in the collection.
for (int i = 0; i < pagesSection.Controls.Count; i++)
{
Console.WriteLine("Control {0}:", i);
Console.WriteLine(" TagPrefix = '{0}' ",
pagesSection.Controls[i].TagPrefix);
Console.WriteLine(" TagName = '{0}' ",
pagesSection.Controls[i].TagName);
Console.WriteLine(" Source = '{0}' ",
pagesSection.Controls[i].Source);
Console.WriteLine(" Namespace = '{0}' ",
pagesSection.Controls[i].Namespace);
Console.WriteLine(" Assembly = '{0}' ",
pagesSection.Controls[i].Assembly);
}
// Create a new TagPrefixInfo object.
System.Web.Configuration.TagPrefixInfo tagPrefixInfo =
new System.Web.Configuration.TagPrefixInfo("MyCtrl", "MyNameSpace", "MyAssembly", "MyControl", "MyControl.ascx");
// Execute the Add Method.
pagesSection.Controls.Add(tagPrefixInfo);
// Add a TagPrefixInfo object using a constructor.
pagesSection.Controls.Add(
new System.Web.Configuration.TagPrefixInfo(
"MyCtrl", "MyNameSpace", "MyAssembly", "MyControl",
"MyControl.ascx"));
// Get the current StyleSheetTheme property value.
Console.WriteLine(
"Current StyleSheetTheme value: '{0}'",
pagesSection.StyleSheetTheme);
// Set the StyleSheetTheme property.
pagesSection.StyleSheetTheme =
"MyCustomStyleSheetTheme";
// Get the current EnableSessionState property value.
Console.WriteLine(
"Current EnableSessionState value: '{0}'",
pagesSection.EnableSessionState);
// Set the EnableSessionState property to
// PagesEnableSessionState.ReadOnly.
pagesSection.EnableSessionState =
PagesEnableSessionState.ReadOnly;
// Get the current MasterPageFile property value.
Console.WriteLine(
"Current MasterPageFile value: '{0}'",
pagesSection.MasterPageFile);
// Set the MasterPageFile property to "MyMasterPage.ascx".
pagesSection.MasterPageFile = "MyMasterPage.ascx";
// Get the current Buffer property value.
Console.WriteLine(
"Current Buffer value: '{0}'", pagesSection.Buffer);
// Set the Buffer property to true.
pagesSection.Buffer = true;
// Get all current TagMappings in the collection.
for (int i = 0; i < pagesSection.TagMapping.Count; i++)
{
Console.WriteLine("TagMapping {0}:", i);
Console.WriteLine(" TagTypeName = '{0}'",
pagesSection.TagMapping[i].TagType);
Console.WriteLine(" MappedTagTypeName = '{0}'",
pagesSection.TagMapping[i].MappedTagType);
}
// Add a TagMapInfo object using a constructor.
pagesSection.TagMapping.Add(
new System.Web.Configuration.TagMapInfo(
"MyNameSpace.MyControl", "MyNameSpace.MyOtherControl"));
// Get the current PageBaseType property value.
Console.WriteLine(
"Current PageBaseType value: '{0}'",
pagesSection.PageBaseType);
// Set the PageBaseType property to
// "MyNameSpace.MyCustomPagelBaseType".
pagesSection.PageBaseType =
"MyNameSpace.MyCustomPagelBaseType";
// Get the current SmartNavigation property value.
Console.WriteLine(
"Current SmartNavigation value: '{0}'",
pagesSection.SmartNavigation);
// Set the SmartNavigation property to true.
pagesSection.SmartNavigation = true;
// Update if not locked.
if (!pagesSection.SectionInformation.IsLocked)
{
configuration.Save();
Console.WriteLine("** Configuration updated.");
}
else
{
Console.WriteLine("** Could not update, section is locked.");
}
}
catch (System.Exception e)
{
// Unknown error.
Console.WriteLine("A unknown exception detected in" +
"UsingPagesSection Main.");
Console.WriteLine(e);
}
Console.ReadLine();
}
} // UsingPagesSection class end.
} // Samples.Aspnet.SystemWebConfiguration namespace end.
Imports System.Collections
Imports System.Collections.Specialized
Imports System.Configuration
Imports System.Web.Configuration
Imports System.Web.UI
Namespace Samples.Aspnet.SystemWebConfiguration
Class UsingPagesSection
Public Shared Sub Main()
Try
' Get the Web application configuration.
Dim configuration As System.Configuration.Configuration = _
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("")
' Get the section.
Dim pagesSection As System.Web.Configuration.PagesSection = _
CType(configuration.GetSection("system.web/pages"), _
System.Web.Configuration.PagesSection)
' Get the AutoImportVBNamespace property.
Console.WriteLine( _
"AutoImportVBNamespace: '{0}'", _
pagesSection.Namespaces.AutoImportVBNamespace)
' Set the AutoImportVBNamespace property.
pagesSection.Namespaces.AutoImportVBNamespace = True
' Get all current Namespaces in the collection.
Dim i As Int16
For i = 0 To pagesSection.Namespaces.Count - 1
Console.WriteLine( _
"Namespaces {0}: '{1}'", i, _
pagesSection.Namespaces(i).Namespace)
Next
' Create a new NamespaceInfo object.
Dim namespaceInfo As System.Web.Configuration.NamespaceInfo = _
New System.Web.Configuration.NamespaceInfo("System")
' Set the Namespace property.
namespaceInfo.Namespace = "System.Collections"
' Execute the Add Method.
pagesSection.Namespaces.Add(namespaceInfo)
' Add a NamespaceInfo object using a constructor.
pagesSection.Namespaces.Add( _
New System.Web.Configuration.NamespaceInfo( _
"System.Collections.Specialized"))
' Execute the RemoveAt method.
pagesSection.Namespaces.RemoveAt(0)
' Execute the Clear method.
pagesSection.Namespaces.Clear()
' Execute the Remove method.
pagesSection.Namespaces.Remove("System.Collections")
' Get the current AutoImportVBNamespace property value.
Console.WriteLine( _
"Current AutoImportVBNamespace value: '{0}'", _
pagesSection.Namespaces.AutoImportVBNamespace)
' Set the AutoImportVBNamespace property to false.
pagesSection.Namespaces.AutoImportVBNamespace = False
' Get the current PageParserFilterType property value.
Console.WriteLine( _
"Current PageParserFilterType value: '{0}'", _
pagesSection.PageParserFilterType)
' Set the PageParserFilterType property to
' "MyNameSpace.AllowOnlySafeControls".
pagesSection.PageParserFilterType = _
"MyNameSpace.AllowOnlySafeControls"
' Get the current Theme property value.
Console.WriteLine( _
"Current Theme value: '{0}'", pagesSection.Theme)
' Set the Theme property to "MyCustomTheme".
pagesSection.Theme = "MyCustomTheme"
' Get the current EnableViewState property value.
Console.WriteLine( _
"Current EnableViewState value: '{0}'", _
pagesSection.EnableViewState)
' Set the EnableViewState property to false.
pagesSection.EnableViewState = False
' Get the current CompilationMode property value.
Console.WriteLine( _
"Current CompilationMode value: '{0}'", _
pagesSection.CompilationMode)
' Set the CompilationMode property to CompilationMode.Always.
pagesSection.CompilationMode = CompilationMode.Always
' Get the current ValidateRequest property value.
Console.WriteLine( _
"Current ValidateRequest value: '{0}'", _
pagesSection.ValidateRequest)
' Set the ValidateRequest property to true.
pagesSection.ValidateRequest = True
' Get the current EnableViewStateMac property value.
Console.WriteLine( _
"Current EnableViewStateMac value: '{0}'", _
pagesSection.EnableViewStateMac)
' Set the EnableViewStateMac property to true.
pagesSection.EnableViewStateMac = True
' Get the current AutoEventWireup property value.
Console.WriteLine( _
"Current AutoEventWireup value: '{0}'", _
pagesSection.AutoEventWireup)
' Set the AutoEventWireup property to false.
pagesSection.AutoEventWireup = False
' Get the current MaxPageStateFieldLength property value.
Console.WriteLine( _
"Current MaxPageStateFieldLength value: '{0}'", _
pagesSection.MaxPageStateFieldLength)
' Set the MaxPageStateFieldLength property to 4098.
pagesSection.MaxPageStateFieldLength = 4098
' Get the current UserControlBaseType property value.
Console.WriteLine( _
"Current UserControlBaseType value: '{0}'", _
pagesSection.UserControlBaseType)
' Set the UserControlBaseType property to
' "MyNameSpace.MyCustomControlBaseType".
pagesSection.UserControlBaseType = _
"MyNameSpace.MyCustomControlBaseType"
' Get all current Controls in the collection.
Dim j As Int32
For j = 0 To pagesSection.Controls.Count - 1
Console.WriteLine("Control {0}:", j)
Console.WriteLine(" TagPrefix = '{0}' ", _
pagesSection.Controls(j).TagPrefix)
Console.WriteLine(" TagName = '{0}' ", _
pagesSection.Controls(j).TagName)
Console.WriteLine(" Source = '{0}' ", _
pagesSection.Controls(j).Source)
Console.WriteLine(" Namespace = '{0}' ", _
pagesSection.Controls(j).Namespace)
Console.WriteLine(" Assembly = '{0}' ", _
pagesSection.Controls(j).Assembly)
Next
' Create a new TagPrefixInfo object.
Dim tagPrefixInfo As System.Web.Configuration.TagPrefixInfo = _
New System.Web.Configuration.TagPrefixInfo("MyCtrl", "MyNameSpace", "MyAssembly", "MyControl", "MyControl.ascx")
' Execute the Add Method.
pagesSection.Controls.Add(tagPrefixInfo)
' Add a TagPrefixInfo object using a constructor.
pagesSection.Controls.Add( _
New System.Web.Configuration.TagPrefixInfo( _
"MyCtrl", "MyNameSpace", "MyAssembly", "MyControl", _
"MyControl.ascx"))
' Get the current StyleSheetTheme property value.
Console.WriteLine( _
"Current StyleSheetTheme value: '{0}'", _
pagesSection.StyleSheetTheme)
' Set the StyleSheetTheme property to
' "MyCustomStyleSheetTheme".
pagesSection.StyleSheetTheme = "MyCustomStyleSheetTheme"
' Get the current EnableSessionState property value.
Console.WriteLine( _
"Current EnableSessionState value: '{0}'", pagesSection.EnableSessionState)
' Set the EnableSessionState property to
' PagesEnableSessionState.ReadOnly.
pagesSection.EnableSessionState = PagesEnableSessionState.ReadOnly
' Get the current MasterPageFile property value.
Console.WriteLine( _
"Current MasterPageFile value: '{0}'", _
pagesSection.MasterPageFile)
' Set the MasterPageFile property to "MyMasterPage.ascx".
pagesSection.MasterPageFile = "MyMasterPage.ascx"
' Get the current Buffer property value.
Console.WriteLine( _
"Current Buffer value: '{0}'", pagesSection.Buffer)
' Set the Buffer property to true.
pagesSection.Buffer = True
' Get all current TagMappings in the collection.
Dim k As Int32
For k = 1 To pagesSection.TagMapping.Count
Console.WriteLine("TagMapping {0}:", i)
Console.WriteLine(" TagTypeName = '{0}'", _
pagesSection.TagMapping(k).TagType)
Console.WriteLine(" MappedTagTypeName = '{0}'", _
pagesSection.TagMapping(k).MappedTagType)
Next
' Add a TagMapInfo object using a constructor.
pagesSection.TagMapping.Add( _
New System.Web.Configuration.TagMapInfo( _
"MyNameSpace.MyControl", "MyNameSpace.MyOtherControl"))
' Get the current PageBaseType property value.
Console.WriteLine( _
"Current PageBaseType value: '{0}'", pagesSection.PageBaseType)
' Set the PageBaseType property to
' "MyNameSpace.MyCustomPagelBaseType".
pagesSection.PageBaseType = "MyNameSpace.MyCustomPagelBaseType"
' Get the current SmartNavigation property value.
Console.WriteLine( _
"Current SmartNavigation value: '{0}'", pagesSection.SmartNavigation)
' Set the SmartNavigation property to true.
pagesSection.SmartNavigation = True
' Update if not locked.
If Not pagesSection.SectionInformation.IsLocked Then
configuration.Save()
Console.WriteLine("** Configuration updated.")
Else
Console.WriteLine("** Could not update, section is locked.")
End If
Catch e As System.Exception
' Unknown error.
Console.WriteLine("A unknown exception detected in " & _
"UsingPagesSection Main.")
Console.WriteLine(e)
End Try
Console.ReadLine()
End Sub
End Class
End Namespace ' Samples.Aspnet.SystemWebConfiguration
Opmerkingen
De PagesSection klasse biedt een manier om programmatisch toegang te krijgen tot en de inhoud van de sectie pagina's met configuratiebestanden te wijzigen. Deze configuratiesectie biedt ondersteuning voor het globaal instellen van bepaalde ASP.NET pagina- en controlerichtlijnen voor alle pagina's en besturingselementen in het bereik van het configuratiebestand. Dit omvat de @ Page richtlijn, de @ Import instructie via de Namespaces verzamelingseigenschap en de @ Register instructie via de Controls verzamelingseigenschap. Het biedt ook ondersteuning voor het toewijzen van tagtypen aan andere tagtypen tijdens runtime via de TagMapping verzamelingseigenschap.
Instructies geven instellingen op die door de pagina- en gebruikersbeheercompilatoren worden gebruikt wanneer ze ASP.NET Web Forms paginabestanden (.aspx) en gebruikersbeheerbestanden (.ascx) verwerken.
Constructors
| Name | Description |
|---|---|
| PagesSection() |
Initialiseert een nieuw exemplaar van de PagesSection klasse met behulp van standaardinstellingen. |
Eigenschappen
| Name | Description |
|---|---|
| AsyncTimeout |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft hoeveel seconden er moet worden gewacht tot een asynchrone handler is voltooid tijdens het verwerken van asynchrone pagina's. |
| AutoEventWireup |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of gebeurtenissen voor ASP.NET pagina's automatisch zijn verbonden met functies voor gebeurtenisafhandeling. |
| Buffer |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of .aspx pagina's en ASCX-besturingselementen responsbuffering gebruiken. |
| ClientIDMode |
Hiermee haalt u het standaardalgoritmen op die worden gebruikt voor het genereren van de id van een besturingselement. |
| CompilationMode |
Hiermee wordt een waarde opgehaald of ingesteld die bepaalt hoe .aspx pagina's en ASCX-besturingselementen worden gecompileerd. |
| ControlRenderingCompatibilityVersion |
Hiermee wordt een waarde opgehaald of ingesteld waarmee de ASP.NET versie wordt opgegeven waarmee elke weergegeven HTML compatibel is. |
| Controls |
Hiermee haalt u een verzameling TagPrefixInfo objecten op. |
| CurrentConfiguration |
Hiermee wordt een verwijzing opgehaald naar het exemplaar op het hoogste niveau Configuration dat de configuratiehiërarchie vertegenwoordigt waartoe het huidige ConfigurationElement exemplaar behoort. (Overgenomen van ConfigurationElement) |
| ElementInformation |
Hiermee haalt u een ElementInformation object op dat de niet-aanpasbare informatie en functionaliteit van het ConfigurationElement object bevat. (Overgenomen van ConfigurationElement) |
| ElementProperty |
Hiermee haalt u het ConfigurationElementProperty object op dat het ConfigurationElement object zelf vertegenwoordigt. (Overgenomen van ConfigurationElement) |
| EnableEventValidation |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of gebeurtenisvalidatie is ingeschakeld. |
| EnableSessionState |
Hiermee wordt een waarde opgehaald of ingesteld waarmee wordt aangegeven of de sessiestatus is ingeschakeld, uitgeschakeld of alleen-lezen. |
| EnableViewState |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de weergavestatus is ingeschakeld of uitgeschakeld. |
| EnableViewStateMac |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of ASP.NET een MAC (Message Authentication Code) moet uitvoeren op de weergavestatus van de pagina wanneer de pagina wordt teruggezet vanaf de client. |
| EvaluationContext |
Hiermee haalt u het ContextInformation object voor het ConfigurationElement object op. (Overgenomen van ConfigurationElement) |
| HasContext |
Hiermee wordt een waarde opgehaald die aangeeft of de CurrentConfiguration eigenschap is |
| IgnoreDeviceFilters |
Hiermee haalt u de verzameling apparaattags op die ASP.NET moeten negeren wanneer een pagina wordt weergegeven. |
| Item[ConfigurationProperty] |
Hiermee wordt een eigenschap of kenmerk van dit configuratie-element opgehaald of ingesteld. (Overgenomen van ConfigurationElement) |
| Item[String] |
Hiermee wordt een eigenschap, kenmerk of onderliggend element van dit configuratie-element opgehaald of ingesteld. (Overgenomen van ConfigurationElement) |
| LockAllAttributesExcept |
Hiermee haalt u de verzameling vergrendelde kenmerken op. (Overgenomen van ConfigurationElement) |
| LockAllElementsExcept |
Hiermee haalt u de verzameling vergrendelde elementen op. (Overgenomen van ConfigurationElement) |
| LockAttributes |
Hiermee haalt u de verzameling vergrendelde kenmerken op. (Overgenomen van ConfigurationElement) |
| LockElements |
Hiermee haalt u de verzameling vergrendelde elementen op. (Overgenomen van ConfigurationElement) |
| LockItem |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of het element is vergrendeld. (Overgenomen van ConfigurationElement) |
| MaintainScrollPositionOnPostBack |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de positie van de pagina scroll moet worden gehandhaafd bij het retourneren van een postback vanaf de server. |
| MasterPageFile |
Hiermee wordt een verwijzing naar de basispagina voor de toepassing opgehaald of ingesteld. |
| MaxPageStateFieldLength |
Hiermee wordt het maximum aantal tekens opgehaald of ingesteld dat een veld met één weergavestatus kan bevatten. |
| Namespaces |
Hiermee haalt u een verzameling NamespaceInfo objecten op. |
| PageBaseType |
Hiermee wordt een waarde opgehaald of ingesteld waarmee een code-behind-klasse wordt opgegeven die standaard .aspx pagina's overnemen. |
| PageParserFilterType |
Hiermee wordt een waarde opgehaald of ingesteld waarmee het filtertype parser wordt opgegeven. |
| Properties |
Hiermee haalt u de verzameling eigenschappen op. (Overgenomen van ConfigurationElement) |
| RenderAllHiddenFieldsAtTopOfForm |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of alle door het systeem gegenereerde verborgen velden boven aan het formulier worden weergegeven. |
| SectionInformation |
Hiermee haalt u een SectionInformation object op dat de niet-aanpasbare informatie en functionaliteit van het ConfigurationSection object bevat. (Overgenomen van ConfigurationSection) |
| SmartNavigation |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of slimme navigatie is ingeschakeld. |
| StyleSheetTheme |
Hiermee haalt u de naam van een ASP.NET opmaakmodelthema op of stelt u deze in. |
| TagMapping |
Hiermee haalt u een verzameling TagMapInfo objecten op. |
| Theme |
Hiermee haalt u de naam van een ASP.NET paginathema op of stelt u deze in. |
| UserControlBaseType |
Hiermee wordt een waarde opgehaald of ingesteld waarmee een code-behind-klasse wordt opgegeven die standaard wordt overgenomen door gebruikersbesturingselementen. |
| ValidateRequest |
Hiermee wordt een waarde opgehaald of ingesteld die bepaalt of ASP.NET invoer van de browser onderzoekt op gevaarlijke waarden. Zie Overzicht van Script Exploits voor meer informatie. |
| ViewStateEncryptionMode |
Hiermee haalt u de versleutelingsmodus op die ASP.NET gebruikt bij het onderhouden van |
Methoden
| Name | Description |
|---|---|
| DeserializeElement(XmlReader, Boolean) |
Leest XML uit het configuratiebestand. (Overgenomen van ConfigurationElement) |
| DeserializeSection(XmlReader) |
Leest XML uit het configuratiebestand. (Overgenomen van ConfigurationSection) |
| Equals(Object) |
Vergelijkt het huidige ConfigurationElement exemplaar met het opgegeven object. (Overgenomen van ConfigurationElement) |
| GetHashCode() |
Hiermee haalt u een unieke waarde op die het huidige ConfigurationElement exemplaar vertegenwoordigt. (Overgenomen van ConfigurationElement) |
| GetRuntimeObject() |
Retourneert een aangepast object wanneer dit wordt overschreven in een afgeleide klasse. (Overgenomen van ConfigurationSection) |
| GetTransformedAssemblyString(String) |
Retourneert de getransformeerde versie van de opgegeven assemblynaam. (Overgenomen van ConfigurationElement) |
| GetTransformedTypeString(String) |
Retourneert de getransformeerde versie van de opgegeven typenaam. (Overgenomen van ConfigurationElement) |
| GetType() |
Hiermee haalt u de Type huidige instantie op. (Overgenomen van Object) |
| Init() |
Hiermee stelt u het object in op de ConfigurationElement oorspronkelijke status. (Overgenomen van ConfigurationElement) |
| InitializeDefault() |
Wordt gebruikt om een standaardset waarden voor het ConfigurationElement object te initialiseren. (Overgenomen van ConfigurationElement) |
| IsModified() |
Geeft aan of dit configuratie-element is gewijzigd sinds het voor het laatst is opgeslagen of geladen wanneer dit is geïmplementeerd in een afgeleide klasse. (Overgenomen van ConfigurationSection) |
| IsReadOnly() |
Hiermee wordt een waarde opgehaald die aangeeft of het ConfigurationElement object het kenmerk Alleen-lezen heeft. (Overgenomen van ConfigurationElement) |
| ListErrors(IList) |
Voegt de fouten met ongeldige eigenschappen in dit ConfigurationElement object en in alle subelementen toe aan de doorgegeven lijst. (Overgenomen van ConfigurationElement) |
| MemberwiseClone() |
Hiermee maakt u een ondiepe kopie van de huidige Object. (Overgenomen van Object) |
| OnDeserializeUnrecognizedAttribute(String, String) |
Hiermee wordt een waarde opgehaald die aangeeft of er een onbekend kenmerk wordt aangetroffen tijdens deserialisatie. (Overgenomen van ConfigurationElement) |
| OnDeserializeUnrecognizedElement(String, XmlReader) |
Hiermee wordt een waarde opgehaald die aangeeft of er een onbekend element wordt aangetroffen tijdens deserialisatie. (Overgenomen van ConfigurationElement) |
| OnRequiredPropertyNotFound(String) |
Genereert een uitzondering wanneer een vereiste eigenschap niet wordt gevonden. (Overgenomen van ConfigurationElement) |
| PostDeserialize() |
Gebeld na ontserialisatie. (Overgenomen van ConfigurationElement) |
| PreSerialize(XmlWriter) |
Aangeroepen vóór serialisatie. (Overgenomen van ConfigurationElement) |
| Reset(ConfigurationElement) |
Hiermee stelt u de interne status van het ConfigurationElement object opnieuw in, inclusief de vergrendelingen en de eigenschappenverzamelingen. (Overgenomen van ConfigurationElement) |
| ResetModified() |
Hiermee stelt u de waarde van de methode IsModified() opnieuw in wanneer deze |
| SerializeElement(XmlWriter, Boolean) |
Schrijft de inhoud van dit configuratie-element naar het configuratiebestand wanneer deze wordt geïmplementeerd in een afgeleide klasse. (Overgenomen van ConfigurationElement) |
| SerializeSection(ConfigurationElement, String, ConfigurationSaveMode) |
Hiermee maakt u een XML-tekenreeks met een niet-gekoppelde weergave van het ConfigurationSection object als één sectie om naar een bestand te schrijven. (Overgenomen van ConfigurationSection) |
| SerializeToXmlElement(XmlWriter, String) |
Hiermee schrijft u de buitenste tags van dit configuratie-element naar het configuratiebestand wanneer het wordt geïmplementeerd in een afgeleide klasse. (Overgenomen van ConfigurationElement) |
| SetPropertyValue(ConfigurationProperty, Object, Boolean) |
Hiermee stelt u een eigenschap in op de opgegeven waarde. (Overgenomen van ConfigurationElement) |
| SetReadOnly() |
Hiermee stelt u de IsReadOnly() eigenschap voor het ConfigurationElement object en alle subelementen in. (Overgenomen van ConfigurationElement) |
| ShouldSerializeElementInTargetVersion(ConfigurationElement, String, FrameworkName) |
Geeft aan of het opgegeven element moet worden geserialiseerd wanneer de hiërarchie van het configuratieobject wordt geserialiseerd voor de opgegeven doelversie van het .NET Framework. (Overgenomen van ConfigurationSection) |
| ShouldSerializePropertyInTargetVersion(ConfigurationProperty, String, FrameworkName, ConfigurationElement) |
Geeft aan of de opgegeven eigenschap moet worden geserialiseerd wanneer de configuratieobjecthiërarchie wordt geserialiseerd voor de opgegeven doelversie van het .NET Framework. (Overgenomen van ConfigurationSection) |
| ShouldSerializeSectionInTargetVersion(FrameworkName) |
Hiermee wordt aangegeven of de huidige ConfigurationSection-instantie moet worden geserialiseerd wanneer de hiërarchie van het configuratieobject wordt geserialiseerd voor de opgegeven doelversie van het .NET Framework. (Overgenomen van ConfigurationSection) |
| ToString() |
Retourneert een tekenreeks die het huidige object vertegenwoordigt. (Overgenomen van Object) |
| Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode) |
Hiermee wijzigt u het ConfigurationElement object om alle waarden te verwijderen die niet mogen worden opgeslagen. (Overgenomen van ConfigurationElement) |