SoNetBaseRegisterTypeManagedType Method |
Associates a native type name with a managed type.
Namespace: OIV.InventorAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.1.0.0 (2024.1.0)
Syntax public static void RegisterType<ManagedType>(
string nativeTypeName
)
where ManagedType : SoNetBase
Public Shared Sub RegisterType(Of ManagedType As SoNetBase) (
nativeTypeName As String
)
public:
generic<typename ManagedType>
where ManagedType : SoNetBase
static void RegisterType(
String^ nativeTypeName
)
static member RegisterType :
nativeTypeName : string -> unit when 'ManagedType : SoNetBase
Parameters
- nativeTypeName
- Type: SystemString
a managed string of the the native type name.
The native type name can be retrieved using the
::AnSoTypedObject::getClassTypeId().getName().getString()
method call.
Type Parameters
- ManagedType
- the associated managed type.
Exceptions Exception | Condition |
---|
ArgumentException |
Thrown when the name denotes a bad type
- or -
when a type with the same name already exists.
|
Remarks
Associates a native type name with a managed type.
See Also