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.
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.
Required to inspect non-public members of the component. Link demand access required for ReflectionPermissionFlag type MemberAccess.
Available since 1.1