VirtualTypeBuilder::MethodInfoCollection::Add Method (String^, Type^, array<Type^>^)

 

Adds a MethodInfo 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^ returnType,
	array<Type^>^ parameterTypes
)

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.

Return Value

Type: System::Int32

The index at which the value has been added.

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.

Return to top
Show: