DialogPage.MapSerializablePropertyDescriptor 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许观察不同属性的更改,而不是中描述的属性 descriptor AutomationObject 。
protected:
virtual bool MapSerializablePropertyDescriptor(System::ComponentModel::PropertyDescriptor ^ descriptor, [Runtime::InteropServices::Out] System::Object ^ % mappedObject, [Runtime::InteropServices::Out] System::ComponentModel::PropertyDescriptor ^ % mappedDescriptor);
protected virtual bool MapSerializablePropertyDescriptor (System.ComponentModel.PropertyDescriptor descriptor, out object mappedObject, out System.ComponentModel.PropertyDescriptor mappedDescriptor);
abstract member MapSerializablePropertyDescriptor : System.ComponentModel.PropertyDescriptor * obj * PropertyDescriptor -> bool
override this.MapSerializablePropertyDescriptor : System.ComponentModel.PropertyDescriptor * obj * PropertyDescriptor -> bool
Protected Overridable Function MapSerializablePropertyDescriptor (descriptor As PropertyDescriptor, ByRef mappedObject As Object, ByRef mappedDescriptor As PropertyDescriptor) As Boolean
参数
- descriptor
- PropertyDescriptor
描述将在其上观察到的属性 AutomationObject
- mappedObject
- Object
要观察其属性的对象,而不是 AutomationObject ,如果不进行任何更改,则为 null。
- mappedDescriptor
- PropertyDescriptor
描述将在其上观察到的属性 mappedObject ,如果不进行任何更改,则为 null。
返回
如果 mappedObject 和 mappedDescriptor 已返回,则为 True; 如果未 (,则为 false,这表示应观察到默认的对象和属性。