Udostępnij za pośrednictwem


DialogPage.MapSerializablePropertyDescriptor Method

Definition

Allows a different property to be observed for changes, instead of the property described by descriptor on the 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

Parameters

descriptor
PropertyDescriptor

Describes the property that will be observed on AutomationObject

mappedObject
Object

The object whose property will be observed instead of AutomationObject, or null if no change should be made.

mappedDescriptor
PropertyDescriptor

Describes the property that will be observed on mappedObject, or null if no change should be made.

Returns

True if mappedObject and mappedDescriptor have been returned, false if they haven't (which indicates that the default object and property should be observed.

Applies to