BaseTemplateParser.GetReferencedType(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om