Compartilhar via


PagesSection.PageParserFilterType Propriedade

Definição

Obtém ou define um valor que especifica o tipo de filtro do analisador.

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

Valor da propriedade

String

Uma cadeia de caracteres que especifica o tipo de filtro do analisador.

Atributos

Exemplos

O exemplo de código a seguir mostra como usar a PageParserFilterType propriedade.

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

Aplica-se a

Confira também