# TransactionAttribute

Package: [Microsoft.Orleans.Transactions](/orleans/docs/api/csharp/microsoft.orleans.transactions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Transactions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/TransactionAttribute.cs#L24)

```csharp
public sealed class TransactionAttribute : Attribute
```

The TransactionAttribute attribute is used to mark methods that start and join transactions.

## Constructors

- [TransactionAttribute(TransactionOption)](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactionattribute/constructors/constructor-orleans-transactionoption-42124aa3/)
- [TransactionAttribute(TransactionOptionAlias)](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactionattribute/constructors/constructor-orleans-transactionoptionalias-b961eaec/)

## Properties

- [ReadOnly](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactionattribute/properties/readonly-044ac48c/)
- [Requirement](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactionattribute/properties/requirement-15876f0e/)
