PresentationViewsSubject Constructor (PresentationElement, ModelElement)
Creates a PresentationViewsSubject link in the same Partition as the given PresentationElement
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Sub New ( _
source As PresentationElement, _
target As ModelElement _
)
public PresentationViewsSubject(
PresentationElement source,
ModelElement target
)
public:
PresentationViewsSubject(
PresentationElement^ source,
ModelElement^ target
)
new :
source:PresentationElement *
target:ModelElement -> PresentationViewsSubject
public function PresentationViewsSubject(
source : PresentationElement,
target : ModelElement
)
Parameters
- source
Type: Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement
PresentationElement to use as the source of the relationship.
- target
Type: Microsoft.VisualStudio.Modeling.ModelElement
ModelElement to use as the target of the relationship.
Remarks
Presentation elements and PresentationViewsSubject links are usually created in a separate Partitionfrom the domain model elements.
You can also construct this relationship by setting the Model property in the PresentationElement.
.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.
See Also
Reference
PresentationViewsSubject Class