VirtualTypeBuilder::PropertyInfoCollection::Add Method (String^, Type^, Boolean)
Visual Studio 2015
Adds a PropertyInfo to the end of the collection.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Parameters
- name
-
Type:
System::String^
The name of the property to add.
- propertyType
-
Type:
System::Type^
The type of the property.
- readOnly
-
Type:
System::Boolean
Determines if this property is read only or read write.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is null. -or- propertyType is null. |
| ArgumentException | propertyType is not a runtime type. |
Show: