Description

Unregisters a category previously registered with RegisterCategory.

Return Type

None  

Syntax

object.UnregisterCategory varCategoryNameOrID

The UnregisterCategory Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McObjects.
varCategoryNameOrIDRequired. A Variant value.

The name or category ID to unregister

Remarks

Any objects which are a member of the category being unregistered will be removed from all membership in any category.

If the varCategoryNameOrID is given as a name, that category name must be within the scope of the current default Namespace, unless the actual namespace is supplied via the “::” syntax.