SignatureHelper.AddArgument Method (Type, Boolean)

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

Adds an argument of the specified type to the signature, specifying whether the argument is pinned.

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

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Sub AddArgument ( _
    argument As Type, _
    pinned As Boolean _
)
[SecuritySafeCriticalAttribute]
public void AddArgument(
    Type argument,
    bool pinned
)

Parameters

  • pinned
    Type: System.Boolean
    true if the argument is pinned; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

To add an argument with optional or required custom modifiers, use the AddArgument(Type, array<Type[], array<Type[]) method overload.

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.