Freigeben über


SignatureHelper.GetMethodSigHelper Method (Module, CallingConventions, 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, calling convention, and return type.

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

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Shared Function GetMethodSigHelper ( _
    mod As Module, _
    callingConvention As CallingConventions, _
    returnType As Type _
) As SignatureHelper
[SecuritySafeCriticalAttribute]
public static SignatureHelper GetMethodSigHelper(
    Module mod,
    CallingConventions callingConvention,
    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.

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.