Share this page

# CreateObject Method (IUiObjectBase)

Creates a native object wrapping an instance of a Java object within your application.

In this topic:

## CreateObject(String) Method

Creates a native object wrapping an instance of a Java object within your application.

C# Syntax

    Dynamic CreateObject(
       string className
    )

Parameters

className
  The java class name.

Return Value

A native object wrapping an instance of a Java object within your application.

## CreateObject(String,Object[]) Method

Creates a native object wrapping an instance of a Java object within your application.

C# Syntax

    Dynamic CreateObject(string className
                        params object[] arguments
    )

Parameters

className
  The java class name.
arguments
  Any arguments required for the object's constructor.

Return Value

A native object wrapping an instance of a Java object within your application.

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: