共用方式為


DependencyObject.SetReadOnlyPropertyValue(DependencyProperty, Object) 方法

定義

設定唯讀的 DependencyProperty 其值。

protected public:
 void SetReadOnlyPropertyValue(System::Workflow::ComponentModel::DependencyProperty ^ dependencyProperty, System::Object ^ value);
protected internal void SetReadOnlyPropertyValue (System.Workflow.ComponentModel.DependencyProperty dependencyProperty, object value);
member this.SetReadOnlyPropertyValue : System.Workflow.ComponentModel.DependencyProperty * obj -> unit
Protected Friend Sub SetReadOnlyPropertyValue (dependencyProperty As DependencyProperty, value As Object)

參數

dependencyProperty
DependencyProperty

DependencyProperty

value
Object

表示值的 Object

例外狀況

dependencyProperty 為 null 參考 (在 Visual Basic 為 Nothing)。

適用於