Description
Register a new type of McObject.
-
Return Type
-
A Long value.
A new mcobjTypeEnum for the type.
-
Syntax
-
object.RegisterType (bstrTypeName, varBasetypeNameorEnum)
The RegisterType Method syntax has these parts: |
| object | An expression evaluating to an object of type McObjects. | | bstrTypeName | Required. A String value. 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 | Required. A Variant value. 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.
| 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.
|