Click or drag to resize

IMcObjectsRegisterType Method

Register a new type of McObject.

Namespace:  MediaCy.IQL.ObjectManager
Assembly:  MediaCy.IQL.ObjectManager (in MediaCy.IQL.ObjectManager.dll) Version: 10.0.6912.0
Syntax
VB
Function RegisterType ( 
	bstrTypeName As String,
	varBasetypeNameorEnum As Object
) As Integer

Parameters

bstrTypeName
Type: SystemString
[in] Name of the new type. This name must not conflict any other name in its namespace. Unless the name is supplied using the "::" syntax (e.g., "MyNamespace::MyTypeName"), the namespace used is the current default Namespace of this instance of the McObjects ("McOM" unless the Namespace property has been changed).
varBasetypeNameorEnum
Type: SystemObject
[in] Base type VT_BSTR Name or VT_I4 mcobjTypeEnum. If the base type is mcobjTypeUNKNOWN, then the value size is one byte and the new type will have no arithmetic or display capabilities (i.e., it will not be a data-type object). Otherwise the value size is that of the base type.

Return Value

Type: Int32
A new mcobjTypeEnum for the type.
Remarks
The types in the mcobjTypeEnum are available without registration. New types can be based on an existing type or can be a custom, non-data type of object (e.g., used for storing some custom structure). Use the UnregisterType method to unregister a type. If the varBasetypeNameorEnum base type for the new type is given as a name, that type must be within the scope of the current default Namespace, unless the actual namespace is supplied via the "::" syntax.
See Also