Lenguaje

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

Definición

Obtiene un valor de un contexto de enlace. Un valor devuelto indica si hay un valor que coincida con el descriptor de valor especificado.

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

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 encontró un valor coincidente; de lo contrario, false.

Se aplica a