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
- 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 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.
See Also