DesignerSerializationManager.CreateSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new serialization session.
public:
IDisposable ^ CreateSession();
public IDisposable CreateSession ();
member this.CreateSession : unit -> IDisposable
Public Function CreateSession () As IDisposable
Returns
An IDisposable that represents a new serialization session.
Exceptions
The serialization manager is already within a session. This version of DesignerSerializationManager does not support simultaneous sessions.
Remarks
Most data within the serialization manager is transient and only lives for the life of a serialization session. When a session is disposed, serialization is considered to be complete and this transient state is cleared. This allows a single instance of a serialization manager to be used to serialize multiple object trees. Some state, including the service provider and any custom serialization providers that were added to the serialization manager, span sessions.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om