| File: Infrastructure\PageModelAttribute.cs | Web Access |
| Project: src\aspnetcore\src\Mvc\Mvc.RazorPages\src\Microsoft.AspNetCore.Mvc.RazorPages.csproj (Microsoft.AspNetCore.Mvc.RazorPages) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure; /// <summary> /// An attribute for base classes for page models. Applying this attribute to a type /// marks all subclasses of that type as page model types. /// </summary> [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public class PageModelAttribute : Attribute { }