NewItemFactory.CreateInstance Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns an instance of an item of the passed-in Type that is added to the collection.

Namespace:  System.Activities.Design.PropertyEditing
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)

Syntax

'Declaration
Public Overridable Function CreateInstance ( _
    type As Type _
) As Object
'Usage
Dim instance As NewItemFactory
Dim type As Type
Dim returnValue As Object

returnValue = instance.CreateInstance(type)
public virtual Object CreateInstance(
    Type type
)
public:
virtual Object^ CreateInstance(
    Type^ type
)
public function CreateInstance(
    type : Type
) : Object
abstract CreateInstance : 
        type:Type -> Object 
override CreateInstance : 
        type:Type -> Object 

Parameters

Return Value

Type: System.Object
An object instance of the specified type, or nulla null reference (Nothing in Visual Basic) if no appropriate constructor was found.

.NET Framework Security

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

See Also

Reference

NewItemFactory Class

NewItemFactory Members

System.Activities.Design.PropertyEditing Namespace