Click or drag to resize
SoNodeGetInstanceManagedType Method
Gets a managed node for the given native node handle.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.2.0 (2024.1.2)
public static ManagedType GetInstance<ManagedType>(
	IntPtr handle
where ManagedType : SoNode


Type: SystemIntPtr
the native handle.

Type Parameters

the type of the managed object created.

Return Value

Type: ManagedType
A managed wrapped object of the native object defined by the handle or null if the handle is zero.
ArgumentException Thrown when the ManagedType does not represent a closed constructed type (i.e. the managed type is a generic type definition, it does not represent a fully qualified type).

- or -

When the ManagedType represents an abstract type.
Gets a managed node for the given native node handle. Note that this method does not check if the native type of the object defined by the handle is compliant with the managed type given by the ManagedType. You must be sure that the handle can be wrapped as a ManagedType.
See Also