Condividi tramite


PagesSection.PageParserFilterType Proprietà

Definizione

Ottiene o imposta un valore che specifica il tipo di filtro del parser.

public:
 property System::String ^ PageParserFilterType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("pageParserFilterType", DefaultValue="")]
public string PageParserFilterType { get; set; }
[<System.Configuration.ConfigurationProperty("pageParserFilterType", DefaultValue="")>]
member this.PageParserFilterType : string with get, set
Public Property PageParserFilterType As String

Valore della proprietà

Stringa che specifica il tipo di filtro del parser.

Attributi

Esempio

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare la proprietà PageParserFilterType.

// 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 PageParserFilterType property value.
Console.WriteLine( _
    "Current PageParserFilterType value: '{0}'", _
    pagesSection.PageParserFilterType)

' Set the PageParserFilterType property to
' "MyNameSpace.AllowOnlySafeControls".
pagesSection.PageParserFilterType = _
    "MyNameSpace.AllowOnlySafeControls"

Commenti

Un filtro parser, che è un'istanza della PageParserFilter classe , viene chiamato dal processo di compilazione della pagina prima del passaggio di analisi per consentire le modifiche al codice sorgente in fase di esecuzione.

Si applica a

Vedi anche