ModelFactory.CreateItem Method (EditingContext, 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 new ModelItem for the given item type.
Namespace: System.Activities.Design.Model
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public Shared Function CreateItem ( _
context As EditingContext, _
itemType As Type, _
options As CreateOptions, _
ParamArray arguments As Object() _
) As ModelItem
'Usage
Dim context As EditingContext
Dim itemType As Type
Dim options As CreateOptions
Dim arguments As Object()
Dim returnValue As ModelItem
returnValue = ModelFactory.CreateItem(context, _
itemType, options, arguments)
public static ModelItem CreateItem(
EditingContext context,
Type itemType,
CreateOptions options,
params Object[] arguments
)
public:
static ModelItem^ CreateItem(
EditingContext^ context,
Type^ itemType,
CreateOptions options,
... array<Object^>^ arguments
)
public static function CreateItem(
context : EditingContext,
itemType : Type,
options : CreateOptions,
... arguments : Object[]
) : ModelItem
static member CreateItem :
context:EditingContext *
itemType:Type *
options:CreateOptions *
arguments:Object[] -> ModelItem
Parameters
- context
Type: System.Activities.Design.EditingContext
The designer’s editing context.
- itemType
Type: System.Type
The type of the ModelItem to create.
- options
Type: System.Activities.Design.Model.CreateOptions
A set of options used when creating the item.
- arguments
Type: array<System.Object[]
An optional array of arguments that should be passed 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