ModelService.CreateItem Method (Type, CreateOptions, array<Object[])
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a ModelItem for a given type. This method is called by ModelFactory when the user wants to create a new item.
Namespace: System.Activities.Design.Services
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Protected MustOverride Function CreateItem ( _
itemType As Type, _
options As CreateOptions, _
ParamArray arguments As Object() _
) As ModelItem
'Usage
Dim itemType As Type
Dim options As CreateOptions
Dim arguments As Object()
Dim returnValue As ModelItem
returnValue = Me.CreateItem(itemType, _
options, arguments)
protected abstract ModelItem CreateItem(
Type itemType,
CreateOptions options,
params Object[] arguments
)
protected:
virtual ModelItem^ CreateItem(
Type^ itemType,
CreateOptions options,
... array<Object^>^ arguments
) abstract
protected abstract function CreateItem(
itemType : Type,
options : CreateOptions,
... arguments : Object[]
) : ModelItem
abstract CreateItem :
itemType:Type *
options:CreateOptions *
arguments:Object[] -> ModelItem
Parameters
- itemType
Type: System.Type
The type of item to create.
- options
Type: System.Activities.Design.Model.CreateOptions
Creation options. You can specify whether you would like to initialize default values for an item.
- arguments
Type: array<System.Object[]
An array of arguments to the constructor of the item.
Return Value
Type: System.Activities.Design.Model.ModelItem
Returns the newly created ModelItem.
.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.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4