DslDefinitionModelSerializationHelperBase.CheckForOrphanedShapes Method
Go through the diagram to find all shapes that are not connected to a model element. Some of them may be by design, the rest are out-of-sync shapes. We want to make sure that all out-of-sync shapes are given a chance to fix themselves up, or post proper warning/error messages.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll)
Syntax
'Declaration
Protected Overridable Sub CheckForOrphanedShapes ( _
diagram As Diagram, _
serializationResult As SerializationResult _
)
protected virtual void CheckForOrphanedShapes(
Diagram diagram,
SerializationResult serializationResult
)
protected:
virtual void CheckForOrphanedShapes(
Diagram^ diagram,
SerializationResult^ serializationResult
)
abstract CheckForOrphanedShapes :
diagram:Diagram *
serializationResult:SerializationResult -> unit
override CheckForOrphanedShapes :
diagram:Diagram *
serializationResult:SerializationResult -> unit
protected function CheckForOrphanedShapes(
diagram : Diagram,
serializationResult : SerializationResult
)
Parameters
diagram
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramThe diagram of which the shapes are being checked.
serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResultSerializationResult to store warning/error in case an orphaned shape choose to do so.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.