Aracılığıyla paylaş


IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) Yöntem

Tanım

Bağlama bağlamından bir değer alır. Dönüş değeri, belirtilen değer tanımlayıcısı ile eşleşen bir değerin mevcut olup olmadığını gösterir.

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

Parametreler

valueDescriptor
IValueDescriptor

Bağlanacak değerin tanımlayıcısı.

bindingContext
BindingContext

Değerin bağlandığı bağlama bağlamı.

boundValue
Object

İlişkili değer.

Döndürülenler

true eşleşen bir değer bulunduysa; aksi takdirde , false.

Şunlara uygulanır