Adds an element during a deserialization transaction.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Overridable Sub AddNewElement ( _
newElement As ModelElement _
)
'使用
Dim instance As SimpleMonikerResolver
Dim newElement As ModelElement
instance.AddNewElement(newElement)
public virtual void AddNewElement(
ModelElement newElement
)
public:
virtual void AddNewElement(
ModelElement^ newElement
)
public function AddNewElement(
newElement : ModelElement
)
Parameters
newElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element.
Permissions
- 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.