PresentationViewsSubject.SetSubject Method
Sets the model element that is displayed by the presentation element.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Déclaration
Public Shared Sub SetSubject ( _
element As PresentationElement, _
newSubject As ModelElement _
)
public static void SetSubject(
PresentationElement element,
ModelElement newSubject
)
public:
static void SetSubject(
PresentationElement^ element,
ModelElement^ newSubject
)
static member SetSubject :
element:PresentationElement *
newSubject:ModelElement -> unit
public static function SetSubject(
element : PresentationElement,
newSubject : ModelElement
)
Parameters
- newSubject
Type: Microsoft.VisualStudio.Modeling.ModelElement
.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.