Поделиться через


IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object) Метод

Определение

Возвращает значение из контекста привязки. Возвращаемое значение указывает, присутствовало ли значение, соответствующее указанному дескриптору значения.

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

Параметры

valueDescriptor
IValueDescriptor

Дескриптор для привязаемого значения.

bindingContext
BindingContext

Контекст привязки, из которого привязывается значение.

boundValue
Object

Значение привязки.

Возвращаемое значение

Значение true, если соответствующее значение найдено; в противном случае — значение false.

Применяется к