VirtualTypeBuilder::FieldInfoCollection::Add Method (String^, Type^)

 

Adds a FieldInfo to the end of the collection.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

public:
int Add(
	String^ name,
	Type^ fieldType
)

Parameters

name
Type: System::String^

The name of the field to add.

fieldType
Type: System::Type^

The type of field.

Return Value

Type: System::Int32

The index at which the value has been added.

Exception Condition
ArgumentNullException

name or fieldType is null.

ArgumentException

fieldType is not a run-time type.

Return to top
Show: