IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.