ShapeElement.OnInitialize Method
Called to initialize the shape. Override this to attach event handlers and rules to this object.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
Public Overridable Sub OnInitialize
public virtual void OnInitialize()
public:
virtual void OnInitialize()
abstract OnInitialize : unit -> unit
override OnInitialize : unit -> unit
public function OnInitialize()
Remarks
This method is called in a transaction.
.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.