ModelBinder<TModel>.BindMemberFromValue メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| BindMemberFromValue<TValue>(Expression<Func<TModel,TValue>>, Symbol) |
指定したプロパティのカスタム バインド動作を構成します。 |
| BindMemberFromValue<TValue>(Expression<Func<TModel,TValue>>, Func<BindingContext,TValue>) |
指定したプロパティのカスタム バインド動作を構成します。 |
BindMemberFromValue<TValue>(Expression<Func<TModel,TValue>>, Symbol)
指定したプロパティのカスタム バインド動作を構成します。
public:
generic <typename TValue>
void BindMemberFromValue(System::Linq::Expressions::Expression<Func<TModel, TValue> ^> ^ property, System::CommandLine::Symbol ^ symbol);
public void BindMemberFromValue<TValue>(System.Linq.Expressions.Expression<Func<TModel,TValue>> property, System.CommandLine.Symbol symbol);
override this.BindMemberFromValue : System.Linq.Expressions.Expression<Func<'Model, 'Value>> * System.CommandLine.Symbol -> unit
Public Sub BindMemberFromValue(Of TValue) (property As Expression(Of Func(Of TModel, TValue)), symbol As Symbol)
型パラメーター
- TValue
バインドする値の型。
パラメーター
- property
- Expression<Func<TModel,TValue>>
バインドするプロパティを指定する式。
- symbol
- Symbol
プロパティのバインド元となる値のシンボル。
適用対象
BindMemberFromValue<TValue>(Expression<Func<TModel,TValue>>, Func<BindingContext,TValue>)
指定したプロパティのカスタム バインド動作を構成します。
public:
generic <typename TValue>
void BindMemberFromValue(System::Linq::Expressions::Expression<Func<TModel, TValue> ^> ^ property, Func<System::CommandLine::Binding::BindingContext ^, TValue> ^ getValue);
public void BindMemberFromValue<TValue>(System.Linq.Expressions.Expression<Func<TModel,TValue>> property, Func<System.CommandLine.Binding.BindingContext?,TValue> getValue);
override this.BindMemberFromValue : System.Linq.Expressions.Expression<Func<'Model, 'Value>> * Func<System.CommandLine.Binding.BindingContext, 'Value> -> unit
Public Sub BindMemberFromValue(Of TValue) (property As Expression(Of Func(Of TModel, TValue)), getValue As Func(Of BindingContext, TValue))
型パラメーター
- TValue
ターゲット プロパティの型。
パラメーター
- property
- Expression<Func<TModel,TValue>>
バインドするプロパティを指定する式。
- getValue
- Func<BindingContext,TValue>
ターゲット プロパティにバインドする値を取得するデリゲート。