Compartir a través de


IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) Método

Definición

Obtiene un valor de un contexto de enlace. Un valor devuelto indica si un valor que coincide con el descriptor de valor especificado estaba presente.

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

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

Valor enlazado.

Devoluciones

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

Se aplica a