SignatureHelper.GetMethodSigHelper Method (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 unmanaged calling convention and return type.
Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Function GetMethodSigHelper ( _
unmanagedCallingConvention As CallingConvention, _
returnType As Type _
) As SignatureHelper
public static SignatureHelper GetMethodSigHelper(
CallingConvention unmanagedCallingConvention,
Type returnType
)
Parameters
- unmanagedCallingConvention
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 |
---|---|
ArgumentException | 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