共用方式為


PagesSection.PageParserFilterType 屬性

定義

取得或設定指定剖析器篩選器型別的值。

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

屬性值

指定剖析器篩選器型別的字串。

屬性

範例

下列程式碼範例示範如何使用 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"

備註

剖析器篩選器是 類別的 PageParserFilter 實例,會在剖析步驟之前由頁面編譯器呼叫,以允許在執行時間變更原始程式碼。

適用於

另請參閱