VirtualTypeBuilder::FieldInfoCollection::Add Method (String^, Type^)
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | name or fieldType is null. |
| ArgumentException | fieldType is not a run-time type. |
Show: