共用方式為


TransactionContext.TransactionId Property

The Id of the containing Transaction

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣告
Public ReadOnly Property TransactionId As Guid
    Get
public Guid TransactionId { get; }
public:
property Guid TransactionId {
    Guid get ();
}
member TransactionId : Guid
function get TransactionId () : Guid

Property Value

Type: System.Guid

.NET Framework Security

See Also

Reference

TransactionContext Class

Microsoft.VisualStudio.Modeling Namespace