Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeDescriptor.CreateProperty Method (Type, PropertyDescriptor, Attribute[])


Creates a new property descriptor from an existing property descriptor, using the specified existing PropertyDescriptor and attribute array.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

[ReflectionPermissionAttribute(SecurityAction.LinkDemand, Flags = ReflectionPermissionFlag.MemberAccess)]
public static PropertyDescriptor CreateProperty(
	Type componentType,
	PropertyDescriptor oldPropertyDescriptor,
	params Attribute[] attributes


Type: System.Type

The Type of the component that the property is a member of.

Type: System.ComponentModel.PropertyDescriptor

The existing property descriptor.

Type: System.Attribute[]

The new attributes for this property.

Return Value

Type: System.ComponentModel.PropertyDescriptor

A new PropertyDescriptor that has the specified metadata attributes merged with the existing metadata attributes.


Required to inspect non-public members of the component. Link demand access required for ReflectionPermissionFlag type MemberAccess.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft