TransactionInterop.GetTransmitterPropagationToken(Transaction) 方法

定義

針對指定的 Transaction 產生傳送者傳播權杖。Generates a propagation token for the specified Transaction.

public:
 static cli::array <System::Byte> ^ GetTransmitterPropagationToken(System::Transactions::Transaction ^ transaction);
public static byte[] GetTransmitterPropagationToken (System.Transactions.Transaction transaction);
static member GetTransmitterPropagationToken : System.Transactions.Transaction -> byte[]
Public Shared Function GetTransmitterPropagationToken (transaction As Transaction) As Byte()

參數

transaction
Transaction

要封送處理至傳播權杖中的異動。A transaction to be marshaled into a propagation token.

傳回

Byte[]

這個方法會與 GetTransactionFromTransmitterPropagationToken(Byte[]) 方法一起提供「傳送者/接收者」傳播的功能,當呼叫後者來解除封送處理交易時,會從遠端機器「提取」交易。This method, together with the GetTransactionFromTransmitterPropagationToken(Byte[]) method, provide functionality for Transmitter/Receiver propagation, in which the transaction is "pulled" from the remote machine when the latter is called to unmarshal the transaction.

如需不同傳播模型的詳細資訊,請參閱 TransactionInterop 類別。For more information on different propagation models, see TransactionInterop class.

適用於