PagesSection.PageParserFilterType Propriedade

Definição

Obtém ou define um valor que especifica o tipo de filtro do analisador.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; }
[<System.Configuration.ConfigurationProperty("pageParserFilterType", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.PageParserFilterType : string with get, set
Public Property PageParserFilterType As String

Valor da propriedade

String

Uma cadeia de caracteres que especifica o tipo de filtro do analisador.A string that specifies the parser filter type.

Atributos

Exemplos

O exemplo de código a seguir mostra como usar a PageParserFilterType propriedade.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"

Comentários

Um filtro de analisador, que é uma instância da PageParserFilter classe, é chamado pelo processo de compilação de página antes da etapa de análise para permitir alterações no código-fonte em tempo de execução.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.

Aplica-se a

Confira também