Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- From: v-lliu@xxxxxxxxxxxxxxxxxxxx (Linda Liu [MSFT])
- Date: Thu, 08 Mar 2007 02:45:53 GMT
Hi Notre,
I consulted this issue in our inner discussion group, and I got the
following reply.
InheritedPropertyDescriptor is used by the default ComponentDesigner to
stand in for properties that are inherited from a base class. There are
two cases where these property descriptors are added:
1. To the root object itself, since you are inheriting from its base class.
2. To fields found in the base class of the root object. Public and
protected fields from the base class are added to the designer so they can
be manipulated by the user.
InheritedPropertyDescriptor modifies the default value of properties so the
default value is the current value at object instantiation. As the
property was inherited from another instance, the designer must make it so
resetting the property value resets it to the value that was set by the
inherited class, which may differ from the default value stored in metadata.
Hope this helpful to you.
Sincerely,
Linda Liu
Microsoft Online Community Support
.
- Follow-Ups:
- Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- From: Notre Poubelle
- Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- References:
- RE: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- From: Linda Liu [MSFT]
- Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- From: Sergey M
- Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- From: Notre Poubelle
- Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- From: Linda Liu [MSFT]
- RE: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- Prev by Date: Re: How to use WebFormsRootDesigner with DesignSurface?
- Next by Date: Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- Previous by thread: Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- Next by thread: Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
- Index(es):