Bahasa

IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) Metode

Definisi

Mendapatkan nilai dari konteks pengikatan. Nilai pengembalian menunjukkan apakah nilai yang cocok dengan deskriptor nilai yang ditentukan ada.

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

Deskriptor untuk nilai yang akan terikat.

bindingContext
BindingContext

Konteks pengikatan untuk mengikat nilai.

boundValue
Object

Nilai terikat.

Mengembalikan

true jika nilai yang cocok ditemukan; jika tidak, false.

Berlaku untuk