IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) メソッド

定義

バインディング コンテキストから値を取得します。 戻り値は、指定された値記述子に一致する値が存在したかどうかを示します。

public:
 bool TryGetValue(System::CommandLine::Binding::IValueDescriptor ^ valueDescriptor, System::CommandLine::Binding::BindingContext ^ bindingContext, [Runtime::InteropServices::Out] System::Object ^ % boundValue);
public bool TryGetValue (System.CommandLine.Binding.IValueDescriptor valueDescriptor, System.CommandLine.Binding.BindingContext? bindingContext, out object? boundValue);
abstract member TryGetValue : System.CommandLine.Binding.IValueDescriptor * System.CommandLine.Binding.BindingContext * obj -> bool
Public Function TryGetValue (valueDescriptor As IValueDescriptor, bindingContext As BindingContext, ByRef boundValue As Object) As Boolean

パラメーター

valueDescriptor
IValueDescriptor

バインドする値の記述子。

bindingContext
BindingContext

値をバインドするバインディング コンテキスト。

boundValue
Object

バインドされた値。

戻り値

一致する値が見つかった場合は true。それ以外の場合は false

適用対象