Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ModuleBuilder.GetArrayMethodToken Method

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

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[SecuritySafeCriticalAttribute]
public MethodToken GetArrayMethodToken(
	Type arrayClass,
	string methodName,
	CallingConventions callingConvention,
	Type returnType,
	Type[] parameterTypes
)

Parameters

arrayClass
Type: System.Type
The type of the array itself, as opposed to the type of elements the array contains.
methodName
Type: System.String
The name of the method.
callingConvention
Type: System.Reflection.CallingConventions
The calling convention for the method.
returnType
Type: System.Type
The return type of the method.
parameterTypes
Type: System.Type[]
The types of the parameters of the method.

Return Value

Type: System.Reflection.Emit.MethodToken
The token for the named method on an array class.

ExceptionCondition
ArgumentException

arrayClass is not an array type.

-or-

The length of methodName is zero.

ArgumentNullException

arrayClass or methodName is null.

This method is similar to GetArrayMethod, except that it returns the token of the array method instead of the method itself.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft