INativeBindingService.TrySetBinding 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TrySetBinding(Object, BindableProperty, BindingBase) | |
TrySetBinding(Object, String, BindingBase) |
TrySetBinding(Object, BindableProperty, BindingBase)
public:
bool TrySetBinding(System::Object ^ target, Microsoft::Maui::Controls::BindableProperty ^ property, Microsoft::Maui::Controls::BindingBase ^ binding);
public bool TrySetBinding (object target, Microsoft.Maui.Controls.BindableProperty property, Microsoft.Maui.Controls.BindingBase binding);
abstract member TrySetBinding : obj * Microsoft.Maui.Controls.BindableProperty * Microsoft.Maui.Controls.BindingBase -> bool
Public Function TrySetBinding (target As Object, property As BindableProperty, binding As BindingBase) As Boolean
參數
- target
- Object
- property
- BindableProperty
- binding
- BindingBase
傳回
適用於
TrySetBinding(Object, String, BindingBase)
public:
bool TrySetBinding(System::Object ^ target, System::String ^ propertyName, Microsoft::Maui::Controls::BindingBase ^ binding);
public bool TrySetBinding (object target, string propertyName, Microsoft.Maui.Controls.BindingBase binding);
abstract member TrySetBinding : obj * string * Microsoft.Maui.Controls.BindingBase -> bool
Public Function TrySetBinding (target As Object, propertyName As String, binding As BindingBase) As Boolean
參數
- target
- Object
- propertyName
- String
- binding
- BindingBase