VirtualTypeBuilder::FieldInfoCollection::Add Method (String^, Type^, array<Attribute^>^)
Visual Studio 2015
Adds a FieldInfo 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 field to add.
- fieldType
-
Type:
System::Type^
The type of field.
- attributes
-
Type:
array<System::Attribute^>^
An array of attributes that must be Public and/or Static.
| Exception | Condition |
|---|---|
| ArgumentNullException | name or fieldType or an element in attributes is null. attributes itself may be null. |
| ArgumentException | fieldType is not a run-time type. |
Show: