'Azure function V4 Service Bus, How to manually deadletter?

We've recently started upgrading our existing functions Version 3 to dotnet6 and azure functions version 4.

After a fair amount of googling I'm having hard time finding out if it's still possible to manually deadletter a service bus message in version 4?

I can see why complete was removed (pretty sure I had some documentation on this I can no longer find) but I imagine I might want to deadletter a message right away.

to further my question. In V3 we could do use messageReceiver.DeadLetterAsync(lockToken) with a service bus message but in Version 4 I'm not sure if this option is still available.

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source