diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/TempDataAttribute.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/TempDataAttribute.cs index a1f0e8eb69..fd2e42f0d7 100644 --- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/TempDataAttribute.cs +++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/TempDataAttribute.cs @@ -3,14 +3,15 @@ using System; -namespace Microsoft.AspNetCore.Mvc.ViewFeatures +namespace Microsoft.AspNetCore.Mvc { /// - /// Properties with the are stored in the . + /// Properties decorated with will have their values stored in + /// and loaded from the . + /// is supported on properties of Controllers, Razor Pages, and Razor Page Page Models. /// - [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)] + [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)] public sealed class TempDataAttribute : Attribute { - } }