Condividi tramite


SerializationContextTransactionExtensions Class

Extension methods for accessing SerializationContext in the scope of a Transaction

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.SerializationContextTransactionExtensions

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

Syntax

'Dichiarazione
<ExtensionAttribute> _
Public NotInheritable Class SerializationContextTransactionExtensions
public static class SerializationContextTransactionExtensions
[ExtensionAttribute]
public ref class SerializationContextTransactionExtensions abstract sealed
[<AbstractClass>]
[<Sealed>]
type SerializationContextTransactionExtensions =  class end
public final class SerializationContextTransactionExtensions

The SerializationContextTransactionExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member GetSerializationContext Get the SerializationContext active in the context of the specified transaction. The SerializationContext is stored in the TranactionContext of serializing transactions. If the transaction is nested the transaction stack is searched to find the nearest enclosing serialization transaction with a SerializationContext.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace