PagesSection.PageParserFilterType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指定分析器筛选器类型。
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 实例,在分析步骤之前由页面编译过程调用,以允许在运行时更改源代码。