SignatureHelper.GetMethodSigHelper Method (Module, CallingConvention, Type)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Shared Function GetMethodSigHelper ( _
    mod As Module, _
    unmanagedCallConv As CallingConvention, _
    returnType As Type _
) As SignatureHelper
[SecuritySafeCriticalAttribute]
public static SignatureHelper GetMethodSigHelper(
    Module mod,
    CallingConvention unmanagedCallConv,
    Type returnType
)

Parameters

  • returnType
    Type: System.Type
    The return type of the method, or nulla null reference (Nothing in Visual Basic) for a void return type (Sub procedure in Visual Basic).

Return Value

Type: System.Reflection.Emit.SignatureHelper
The SignatureHelper object for a method.

Exceptions

Exception Condition
ArgumentNullException

mod is nulla null reference (Nothing in Visual Basic).

ArgumentException

mod is not a ModuleBuilder.

-or-

unmanagedCallConv is an unknown unmanaged calling convention.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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