Maptitude GISDK Help

GetManagedClass()

Summary

Gets a reference to a .NET Type in order to access static properties and methods.

 

Changes

Added to Version 6.0/2012.

 

Syntax

managedobject = GetManagedClass(string assemblyName, string typeName [, array options])

 

Argument

Contents

assemblyName

The name of the assembly that contains the type for which you are creating an object (for assemblies stored in the system's Global Assembly Cache), or the path to the assembly dll

typeName

The fully qualified type name, including its namespace

 

No options currently implemented.

 

Returns

A .NET Object which represents the type and that can be used for calling static properties and methods.

 

Notes

Example

dateTimeClass = GetManagedClass(null, "System.DateTime")

currentTime = dateTimeClass.Now

 

Error Codes

Error Type

Meaning

NotFound

Unable to create the object

 

See Also

Function

Summary

CloseDotNetControl()

Closes the window containing the .NET control

ConvertManagedObjectType()

Access a .NET object using a different interface type

CreateDotNetControl()

Creates a new .NET control window

CreateManagedObject()

Creates a new instance of a .NET Object

GetDotNetControlObject()

Gets the .NET object in a .NET control window

SetDotNetControlTitle()

Sets the title of a .NET control window

 

 

©2025 Caliper Corporation www.caliper.com