Arguments.SetArgument Method |
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
public virtual void SetArgument( int index, Object value )
Parameters
- index
- Type: System.Int32
Argument index. - value
- Type: System.Object
New value of the argument at position index.
Exception | Condition |
---|---|
InvalidCastException | value is not assignable to parameter at position index. |
ArgumentOutOfRangeException | index is lower than zero or greater or equal than Count. |