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

適用於