SignatureHelper.GetMethodSigHelper Method (Module, CallingConvention, Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a signature helper for a method given the method's module, unmanaged calling convention, and return type.

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

public static SignatureHelper GetMethodSigHelper(
	Module mod,
	CallingConvention unmanagedCallConv,
	Type returnType
)

Parameters

mod
Type: System.Reflection.Module

The ModuleBuilder that contains the method for which the SignatureHelper is requested.

unmanagedCallConv
Type: System.Runtime.InteropServices.CallingConvention

The unmanaged calling convention of the method.

returnType
Type: System.Type

The return type of the method, or null for a void return type (Sub procedure in Visual Basic).

Return Value

Type: System.Reflection.Emit.SignatureHelper

The SignatureHelper object for a method.

Exception Condition
ArgumentNullException

mod is null.

ArgumentException

mod is not a ModuleBuilder.

-or-

unmanagedCallConv is an unknown unmanaged calling convention.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show: