BinderBase<T>.IValueSource.TryGetValue Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mencoba mendapatkan nilai dari konteks pengikatan. Nilai yang dikembalikan menunjukkan apakah nilai yang cocok dengan deskriptor nilai yang ditentukan ada.
virtual bool System.CommandLine.Binding.IValueSource.TryGetValue(System::CommandLine::Binding::IValueDescriptor ^ valueDescriptor, System::CommandLine::Binding::BindingContext ^ bindingContext, [Runtime::InteropServices::Out] System::Object ^ % boundValue) = System::CommandLine::Binding::IValueSource::TryGetValue;
bool IValueSource.TryGetValue (System.CommandLine.Binding.IValueDescriptor valueDescriptor, System.CommandLine.Binding.BindingContext? bindingContext, out object? boundValue);
abstract member System.CommandLine.Binding.IValueSource.TryGetValue : System.CommandLine.Binding.IValueDescriptor * System.CommandLine.Binding.BindingContext * obj -> bool
override this.System.CommandLine.Binding.IValueSource.TryGetValue : System.CommandLine.Binding.IValueDescriptor * System.CommandLine.Binding.BindingContext * obj -> bool
Function TryGetValue (valueDescriptor As IValueDescriptor, bindingContext As BindingContext, ByRef boundValue As Object) As Boolean Implements IValueSource.TryGetValue
Parameter
- valueDescriptor
- IValueDescriptor
Deskriptor untuk nilai yang akan diikat.
- bindingContext
- BindingContext
Konteks pengikatan untuk mengikat nilai.
- boundValue
- Object
Ketika metode ini kembali, berisi nilai terikat.
Mengembalikan
true jika nilai yang cocok ditemukan; jika tidak, false.