ModelService.CreateItem Method (Object)
When overridden in a derived class, creates a model item that is a deep copy of the specified instance.
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Protected MustOverride Function CreateItem ( _
item As Object _
) As ModelItem
protected abstract ModelItem CreateItem(
Object item
)
protected:
virtual ModelItem^ CreateItem(
Object^ item
) abstract
abstract CreateItem :
item:Object -> ModelItem
protected abstract function CreateItem(
item : Object
) : ModelItem
Parameters
- item
Type: System.Object
The item to wrap.
Return Value
Type: Microsoft.Windows.Design.Model.ModelItem
A new model item that is a clone of the existing item.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | item is nulla null reference (Nothing in Visual Basic). |
.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.
See Also
Reference
Microsoft.Windows.Design.Services Namespace