VirtualTypeBuilder::MethodInfoCollection::Add Method (String^, Type^, array<Type^>^)
Visual Studio 2015
Adds a MethodInfo 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 method to add.
- returnType
-
Type:
System::Type^
The return type of the method. This should be typeof(void) for void return types.
- paramTypes
The types of the parameters to this method. This can be null or an empty array to declare no parameters.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is null. -or- returnType is null. -or- An element in paramTypes is null. paramTypes property may be null. |
| ArgumentException | returnType is not a run-time type. |
Show: