See also the Transaction response object.

This functionality is specific to Braintree Marketplace merchants.

Result<Transaction> result = gateway.Transaction.HoldInEscrow("transaction_id");

If the transaction can't be found, it will throw a NotFoundException.

You can only hold a transaction in escrow if its Status is Authorized or SubmittedForSettlement.

TransactionId required, string

The Id of the transaction you want to hold in escrow.