PageParserFilter.AllowServerSideInclude(String) Method

Definition

Determines whether a parser permits a specific server-side include on a page.

C#
public virtual bool AllowServerSideInclude(string includeVirtualPath);

Parameters

includeVirtualPath
String

The virtual path to the included file.

Returns

true if a parser permits the specific server-side include; otherwise, false. The default is false.

Remarks

Override the AllowServerSideInclude method to reject all or specific server-side includes. For more information about server-side include syntax, see Server-Side Include Directive Syntax.

Applies to

Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1