# OnLeaseChangedDelegate delegate

Namespace: [Rhino.PlugIns](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.plugins.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public delegate OnLeaseChangedDelegate
```

Called by Rhino to signal that a lease from Rhino Accounts has changed. If LicenseLeaseChangedEventArgs.Lease is null, then the server has signaled that this product is no longer licensed. Your plug-in must change behavior to behave appropriately.

**Signature:**

```cs
void OnLeaseChangedDelegate(LicenseLeaseChangedEventArgs args, out Icon icon)
```

**Parameters:**

- `args` ([LicenseLeaseChangedEventArgs](https://developer.rhino3d.com/api/rhinocommon/type/rhino.plugins.licenseleasechangedeventargs.md)): Data passed by Rhino when the lease changes
- `icon` (out [Icon](https://learn.microsoft.com/dotnet/api/system.drawing.icon)): Icon to be displayed in Tools > Options > Licenses for this lease.
