Bagikan melalui


TransactionAttribute Kelas

Definisi

Atribut TransactionAttribute digunakan untuk menandai metode yang memulai dan menggabungkan transaksi.

[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class TransactionAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Method)]
[Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.ValueTask), typeof(Orleans.TransactionRequest))]
[Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.ValueTask<>), typeof(Orleans.TransactionRequest<>))]
[Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.Task), typeof(Orleans.TransactionTaskRequest))]
[Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.Task<>), typeof(Orleans.TransactionTaskRequest<>))]
[Orleans.InvokableCustomInitializer("SetTransactionOptions")]
public sealed class TransactionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type TransactionAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
[<Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.ValueTask), typeof(Orleans.TransactionRequest))>]
[<Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.ValueTask<>), typeof(Orleans.TransactionRequest<>))>]
[<Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.Task), typeof(Orleans.TransactionTaskRequest))>]
[<Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.Task<>), typeof(Orleans.TransactionTaskRequest<>))>]
[<Orleans.InvokableCustomInitializer("SetTransactionOptions")>]
type TransactionAttribute = class
    inherit Attribute
Public NotInheritable Class TransactionAttribute
Inherits Attribute
Warisan
TransactionAttribute
Atribut

Konstruktor

TransactionAttribute(TransactionOption)

Atribut TransactionAttribute digunakan untuk menandai metode yang memulai dan menggabungkan transaksi.

TransactionAttribute(TransactionOptionAlias)

Atribut TransactionAttribute digunakan untuk menandai metode yang memulai dan menggabungkan transaksi.

Properti

ReadOnly

Atribut TransactionAttribute digunakan untuk menandai metode yang memulai dan menggabungkan transaksi.

Requirement

Atribut TransactionAttribute digunakan untuk menandai metode yang memulai dan menggabungkan transaksi.

Berlaku untuk