Taal

IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) Methode

Definitie

Hiermee haalt u een waarde op uit een bindingscontext. Een retourwaarde geeft aan of een waarde die overeenkomt met de opgegeven waardedescriptor aanwezig was.

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

Parameters

valueDescriptor
IValueDescriptor

De descriptor voor de waarde die moet worden gebonden.

bindingContext
BindingContext

De bindingscontext waaruit de waarde moet worden gekoppeld.

boundValue
Object

De afhankelijke waarde.

Retouren

true als er een overeenkomende waarde is gevonden; anders, false.

Van toepassing op