DotNetAssembly object

The DotNetAssembly object loads the .NET assembly and creates an instance for the .NET object.

Note

This object cannot be referenced in the .NET Assembly component, otherwise the component will fail to be deployed.

Properties

DotNetAssembly property

Datatype

Description

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.

ErrorText

String

Stores the error message if LoadWithDotNetFramework, LoadWithDotNetCore, or CreateInstance functions return a value other than 1.


Events

DotNetAssembly event

Occurs

Constructor

Immediately before the Open event occurs in the window.

Destructor

Immediately after the Close event occurs in the window.


Functions

DotNetAssembly function

Datatype returned

Description

ClassName

String

Returns the name assigned to the object.

CreateInstance

Integer

Creates an instance of the .NET object and associates it with the DotNetObject object.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service.

GetDotNetCoreVersion

String

Gets the version number of the .NET Core runtime.

GetParent

PowerObject

Returns a reference to the name of the parent object.

LoadWithDotNetFramework

Integer

Loads a .NET framework assembly.

LoadWithDotNetCore

Integer

Loads a .NET Core assembly.

PostEvent

Boolean

Adds an event to the end of the message queue for the object.

TriggerEvent

Integer

Triggers a specified event in the object and executes the script for the event.

TypeOf

Object

Returns the object type of the object.

LoadWithDotNet

Integer

Loads a .NET (5 or later) assembly.