Maptitude GISDK Help

ConvertManagedObjectType()

Summary

Access a .NET object using a different .NET Interface type.

 

Changes

Added to Version 6.0/2012.

 

Syntax

managedobject = ConvertManagedObjectType(managedobject object, string assemblyName, string typeName)

 

Argument Contents
object The object for which you are trying to access with the specified interface
assemblyName The name of the assembly that contains the interface type with which you want to access the object (for assemblies stored in the system's Global Assembly Cache), or the path to the assembly dll.
typeName The fully qualified type name of the interface, including its namespace

 

No options currently implemented.

 

Returns

A .NET Object of the specified interface type.

 

Notes

Error Codes

Error Type Meaning
Error The object could not be converted to the specified type
NotFound The assembly could not be loaded or a type by that name could not be found within the assembly

 

See Also

Function Summary
CloseDotNetControl() Closes the window containing the .NET control
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
GetManagedClass() Gets an object representing the .NET class for calling static methods
SetDotNetControlTitle() Sets the title of a .NET control window

 

 

©2025 Caliper Corporation www.caliper.com