NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ModuleBuilder.GetArrayMethodToken

Returns the token for the named method on an array class.

[Visual Basic]
Public Function GetArrayMethodToken( _
   ByVal arrayClass As Type, _
   ByVal methodName As String, _
   ByVal callingConvention As CallingConventions, _
   ByVal returnType As Type, _
   ByVal parameterTypes() As Type _
) As MethodToken
[C#]
public MethodToken GetArrayMethodToken(
   Type arrayClass,
   string methodName,
   CallingConventions callingConvention,
   Type returnType,
   Type[] parameterTypes
);
[C++]
public: MethodToken GetArrayMethodToken(
   Type* arrayClass,
   String* methodName,
   CallingConventions callingConvention,
   Type* returnType,
   Type* parameterTypes[]
);
[JScript]
public function GetArrayMethodToken(
   arrayClass : Type,
   methodName : String,
   callingConvention : CallingConventions,
   returnType : Type,
   parameterTypes : Type[]
) : MethodToken;

Parameters

arrayClass
The Type object for the array.
methodName
A String containing the name of the method.
callingConvention
The calling convention for the method.
returnType
The return type of the method.
parameterTypes
The types of the parameters of the method.

Return Value

The token for the named method on an array class.

Exceptions

Exception Type Condition
ArgumentException if arrayClass is not an array
ArgumentNullException if arrayClass or methodName is a null reference (in Visual Basic Nothing)

See Also

ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace