Lue englanniksi

Jaa


BindPropertiesAttribute Class

Definition

An attribute that enables binding for all properties the decorated controller or Razor Page model defines.

C#
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class BindPropertiesAttribute : Attribute
Inheritance
BindPropertiesAttribute
Attributes

Constructors

Properties

SupportsGet

When true, allows properties to be bound on GET requests. When false, properties do not get model bound or validated on GET requests.

Defaults to false.

Applies to

Tuote Versiot
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0