# Invokable_IExclusiveLockTransactionTestGrain_GrainReference_BD3AA4D0.SetArgument(int, object)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/)

```csharp
public override void SetArgument(int index, object value)
```

Sets the argument at the specified index.

### Parameters

- `index` (`int`): The argument index.
- `value` (`object`): The argument value
