Bewerken

Delen via


BaseTemplateParser.GetReferencedType(String) Method

Definition

Compiles and returns the type of the Page or UserControl control that is specified by the virtual path.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 Type ^ GetReferencedType(System::String ^ virtualPath);
protected Type GetReferencedType (string virtualPath);
member this.GetReferencedType : string -> Type
Protected Function GetReferencedType (virtualPath As String) As Type

Parameters

virtualPath
String

The virtual path of the Page or UserControl.

Returns

The type of the page or user control.

Exceptions

The parser does not permit a virtual reference to the resource specified by virtualPath.

Remarks

If a PageParserFilter object is defined and its AllowVirtualReference property is false, the GetUserControlType method raises an HttpException exception.

The GetUserControlType method is a wrapper for the GetReferencedType method.

Applies to

See also