PagesSection.PageParserFilterType PagesSection.PageParserFilterType PagesSection.PageParserFilterType PagesSection.PageParserFilterType Property

Definition

Gets or sets a value that specifies the parser filter type.

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

Property Value

A string that specifies the parser filter type.

Examples

The following code example shows how to use the PageParserFilterType property.

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

Remarks

A parser filter, which is an instance of the PageParserFilter class, is called by the page compilation process before the parsing step to allow for changes to the source code at run time.

Applies to

See also