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.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor