SignatureHelper.AddArgument Method (Type)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Adds an argument to the signature.
Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Sub AddArgument ( _
clsArgument As Type _
)
public void AddArgument(
Type clsArgument
)
Parameters
- clsArgument
Type: System.Type
The type of the argument.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The signature has already been finished. |
ArgumentNullException | clsArgument 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.