BindRequiredAttribute クラス

定義

モデル バインドにプロパティが必要であることを示します。 プロパティに適用すると、モデル バインド システムはそのプロパティの値を必須にします。 型に適用する場合、モデル バインド システムには、型が定義するすべてのプロパティの値が必要です。

public ref class BindRequiredAttribute sealed : Microsoft::AspNetCore::Mvc::ModelBinding::BindingBehaviorAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class BindRequiredAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class BindRequiredAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type BindRequiredAttribute = class
    inherit BindingBehaviorAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type BindRequiredAttribute = class
    inherit BindingBehaviorAttribute
Public NotInheritable Class BindRequiredAttribute
Inherits BindingBehaviorAttribute
継承
BindRequiredAttribute
属性

コンストラクター

BindRequiredAttribute()

新しい BindRequiredAttribute インスタンスを初期化します。

プロパティ

Behavior

適用する を取得します BindingBehavior

(継承元 BindingBehaviorAttribute)

適用対象