اقرأ باللغة الإنجليزية

مشاركة عبر


IViewContextAware Interface

Definition

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

C#
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

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0