Dela via


IViewContextAware Interface

Definition

Contract for contextualizing a property activated by a view with the ViewContext.

public interface class IViewContextAware
public interface IViewContextAware
type IViewContextAware = interface
Public Interface IViewContextAware
Derived

Remarks

This interface is used for contextualizing properties added to a Razor page using @inject.

Methods

Contextualize(ViewContext)

Contextualizes the instance with the specified viewContext.

Applies to