Delen via


RazorPageResult Constructors

Definition

Overloads

RazorPageResult(String, IRazorPage)

Initializes a new instance of RazorPageResult for a successful discovery.

RazorPageResult(String, IEnumerable<String>)

Initializes a new instance of RazorPageResult for an unsuccessful discovery.

RazorPageResult(String, IRazorPage)

Source:
RazorPageResult.cs
Source:
RazorPageResult.cs
Source:
RazorPageResult.cs

Initializes a new instance of RazorPageResult for a successful discovery.

public:
 RazorPageResult(System::String ^ name, Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^ page);
public RazorPageResult (string name, Microsoft.AspNetCore.Mvc.Razor.IRazorPage page);
new Microsoft.AspNetCore.Mvc.Razor.RazorPageResult : string * Microsoft.AspNetCore.Mvc.Razor.IRazorPage -> Microsoft.AspNetCore.Mvc.Razor.RazorPageResult
Public Sub New (name As String, page As IRazorPage)

Parameters

name
String

The name of the page that was found.

page
IRazorPage

The located IRazorPage.

Applies to

RazorPageResult(String, IEnumerable<String>)

Source:
RazorPageResult.cs
Source:
RazorPageResult.cs
Source:
RazorPageResult.cs

Initializes a new instance of RazorPageResult for an unsuccessful discovery.

public:
 RazorPageResult(System::String ^ name, System::Collections::Generic::IEnumerable<System::String ^> ^ searchedLocations);
public RazorPageResult (string name, System.Collections.Generic.IEnumerable<string> searchedLocations);
new Microsoft.AspNetCore.Mvc.Razor.RazorPageResult : string * seq<string> -> Microsoft.AspNetCore.Mvc.Razor.RazorPageResult
Public Sub New (name As String, searchedLocations As IEnumerable(Of String))

Parameters

name
String

The name of the page that was not found.

searchedLocations
IEnumerable<String>

The locations that were searched.

Applies to