Idioma

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

Definição

Obtém um valor a partir de um contexto de ligação. Um valor de retorno indica se um valor correspondente ao descritor de valor especificado estava 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);
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

O descritor para o valor a ser limitado.

bindingContext
BindingContext

O contexto vinculativo a partir do qual se deve ligar o valor.

boundValue
Object

O valor limitado.

Devoluções

true se fosse encontrado um valor correspondente; caso contrário, false.

Aplica-se a