Language

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);
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。

適用対象