Compartir a través de


BinderBase<T>.IValueSource.TryGetValue Método

Definición

Intenta obtener un valor de un contexto de enlace. El valor devuelto indica si un valor que coincide con el descriptor de valor especificado estaba presente.

 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

Parámetros

valueDescriptor
IValueDescriptor

Descriptor del valor que se va a enlazar.

bindingContext
BindingContext

Contexto de enlace desde el que se va a enlazar el valor.

boundValue
Object

Cuando este método devuelve , contiene el valor enlazado.

Devoluciones

true si se encuentra un valor coincidente; de lo contrario, false.

Implementaciones

Se aplica a