PageLoader.LoadAsync 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.
Overloads
LoadAsync(PageActionDescriptor) |
Obsolete.
Produces a CompiledPageActionDescriptor given a PageActionDescriptor. |
LoadAsync(PageActionDescriptor, EndpointMetadataCollection) |
Produces a CompiledPageActionDescriptor given a PageActionDescriptor. |
LoadAsync(PageActionDescriptor)
- Source:
- PageLoader.cs
Caution
This overload is obsolete and no longer called by the framework. Use the overload that includes an EndpointMetadataCollection.
Produces a CompiledPageActionDescriptor given a PageActionDescriptor.
public:
abstract System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::RazorPages::CompiledPageActionDescriptor ^> ^ LoadAsync(Microsoft::AspNetCore::Mvc::RazorPages::PageActionDescriptor ^ actionDescriptor);
public abstract System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor> LoadAsync (Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor);
[System.Obsolete("This overload is obsolete and no longer called by the framework. Use the overload that includes an EndpointMetadataCollection.")]
public abstract System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor> LoadAsync (Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor);
abstract member LoadAsync : Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor>
[<System.Obsolete("This overload is obsolete and no longer called by the framework. Use the overload that includes an EndpointMetadataCollection.")>]
abstract member LoadAsync : Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor>
Public MustOverride Function LoadAsync (actionDescriptor As PageActionDescriptor) As Task(Of CompiledPageActionDescriptor)
Parameters
- actionDescriptor
- PageActionDescriptor
The PageActionDescriptor.
Returns
A Task that on completion returns a CompiledPageActionDescriptor.
- Attributes
Applies to
LoadAsync(PageActionDescriptor, EndpointMetadataCollection)
- Source:
- PageLoader.cs
Produces a CompiledPageActionDescriptor given a PageActionDescriptor.
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor> LoadAsync (Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.EndpointMetadataCollection endpointMetadata);
abstract member LoadAsync : Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor * Microsoft.AspNetCore.Http.EndpointMetadataCollection -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor>
override this.LoadAsync : Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor * Microsoft.AspNetCore.Http.EndpointMetadataCollection -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor>
Public Overridable Function LoadAsync (actionDescriptor As PageActionDescriptor, endpointMetadata As EndpointMetadataCollection) As Task(Of CompiledPageActionDescriptor)
Parameters
- actionDescriptor
- PageActionDescriptor
The PageActionDescriptor.
- endpointMetadata
- EndpointMetadataCollection
Returns
A Task that on completion returns a CompiledPageActionDescriptor.