PresentationElement.Subject Property
Gets or sets the subject for the presentation element. Defaults to the same object as ModelElement.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Overridable Property Subject As ModelElement
public virtual ModelElement Subject { get; set; }
public:
virtual property ModelElement^ Subject {
ModelElement^ get ();
void set (ModelElement^ value);
}
abstract Subject : ModelElement with get, set
override Subject : ModelElement with get, set
function get Subject () : ModelElement
function set Subject (value : ModelElement)
Property Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
Remarks
By default, Subject has the same effect as ModelElement. Both properties get and set the PresentationViewsSubject relationship from the presentation element to a domain model element. But you can override this property to manage a different relationship.
.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.