IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém um valor de um contexto de associação. Um valor retornado 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 associado.
- bindingContext
- BindingContext
O contexto de associação do qual associar o valor.
- boundValue
- Object
O valor associado.
Retornos
true se um valor correspondente foi encontrado; caso contrário, false.