共用方式為


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

'宣告
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

.NET Framework Security

See Also

Reference

PresentationViewsSubject Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace