Condividi tramite


IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) Metodo

Definizione

Ottiene un valore da un contesto di associazione. Un valore restituito indica se è presente un valore corrispondente al descrittore di valore specificato.

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

Parametri

valueDescriptor
IValueDescriptor

Descrittore per il valore da associare.

bindingContext
BindingContext

Contesto di associazione da cui associare il valore.

boundValue
Object

Valore associato.

Restituisce

true se viene trovato un valore corrispondente; in caso contrario, false.

Si applica a