Dela via


BindPropertiesAttribute Class

Definition

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

public ref class BindPropertiesAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class BindPropertiesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type BindPropertiesAttribute = class
    inherit Attribute
Public Class BindPropertiesAttribute
Inherits Attribute
Inheritance
BindPropertiesAttribute
Attributes

Constructors

BindPropertiesAttribute()

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