Edit

Share via


BinderBase<T>.IValueSource.TryGetValue Method

Definition

Tries to get a value from a binding context. The return value indicates whether a value matching the specified value descriptor was present.

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

Parameters

valueDescriptor
IValueDescriptor

The descriptor for the value to be bound.

bindingContext
BindingContext

The binding context from which to bind the value.

boundValue
Object

When this method returns, contains the bound value.

Returns

true if a matching value was found; otherwise, false.

Implements

Applies to