Windows apps
Collapse the table of content
Expand the table of content
Information
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^, array<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)

public:
[ReflectionPermissionAttribute(SecurityAction::LinkDemand, Flags = ReflectionPermissionFlag::MemberAccess)]
static PropertyDescriptor^ CreateProperty(
	Type^ componentType,
	PropertyDescriptor^ oldPropertyDescriptor,
	... array<Attribute^>^ attributes
)

Parameters

componentType
Type: System::Type^

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

oldPropertyDescriptor
Type: System.ComponentModel::PropertyDescriptor^

The existing property descriptor.

attributes
Type: array<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.

ReflectionPermission

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
Show:
© 2017 Microsoft