Compartilhar via


ShapeElement.OnOrphaned(SerializationResult) Method

Definition

During deserialization, if a shape is not connected to any model element through PresentationViewsSubject relationship when it should, it is considered "orphaned". This method is called when such a shape is encountered during deserialization. Note: The base implementation will remove the shape.

public:
 virtual void OnOrphaned(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult);
public virtual void OnOrphaned (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult);
abstract member OnOrphaned : Microsoft.VisualStudio.Modeling.SerializationResult -> unit
override this.OnOrphaned : Microsoft.VisualStudio.Modeling.SerializationResult -> unit
Public Overridable Sub OnOrphaned (serializationResult As SerializationResult)

Parameters

serializationResult
SerializationResult

SerializationResult that can store any serialization warning/error in case the derived shapes choose to override the base behavior.

Applies to