Win32 API 日本語リファレンス
ホームSystem.ComponentServices › TransactionVote

TransactionVote

列挙型
基底型i4

メンバー 2

名前10進16進説明
TxCommit00x0既存のオブジェクトが、現在のトランザクションのコミットに投票します。
TxAbort10x1既存のオブジェクトが、現在のトランザクションのアボートに投票します。

公式ドキュメント

現在のトランザクションをコミットまたはアボートする準備が、オブジェクトにできているかどうかを示します。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

列挙メンバーの定義。HSP タブは #define global(値は16進)。

typedef enum TransactionVote : int {
    TxCommit = 0,
    TxAbort = 1
} TransactionVote;
public enum TransactionVote : int
{
    TxCommit = 0,
    TxAbort = 1,
}
Public Enum TransactionVote As Integer
    TxCommit = 0
    TxAbort = 1
End Enum
import enum

class TransactionVote(enum.IntEnum):
    TxCommit = 0
    TxAbort = 1
// TransactionVote
pub const TxCommit: i32 = 0;
pub const TxAbort: i32 = 1;
// TransactionVote
const (
	TxCommit int32 = 0
	TxAbort int32 = 1
)
const
  TxCommit = 0;
  TxAbort = 1;
// TransactionVote
pub const TxCommit: i32 = 0;
pub const TxAbort: i32 = 1;
const
  TxCommit* = 0
  TxAbort* = 1
enum TransactionVote : int {
    TxCommit = 0,
    TxAbort = 1,
}
#define global TxCommit 0x0
#define global TxAbort  0x1