Sprache

IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) Methode

Definition

Ruft einen Wert aus einem Bindungskontext ab. Ein Rückgabewert gibt an, ob ein Wert vorhanden war, der dem angegebenen Wertdeskriptor entspricht.

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

Parameter

valueDescriptor
IValueDescriptor

Der Deskriptor für den zu bindenden Wert.

bindingContext
BindingContext

Der Bindungskontext, aus dem der Wert gebunden werden soll.

boundValue
Object

Der gebundene Wert.

Gibt zurück

truewenn ein übereinstimmenden Wert gefunden wurde; andernfalls . false

Gilt für: