Share via


CoreAutomationRegistrar.UnregisterAnnotationType Method

Definition

Unregisters a custom annotation type that was previously registered for text ranges with RegisterAnnotationType(System.Guid).

public:
 static void UnregisterAnnotationType(AutomationAnnotationTypeRegistration registration);
 static void UnregisterAnnotationType(AutomationAnnotationTypeRegistration const& registration);
public static void UnregisterAnnotationType(AutomationAnnotationTypeRegistration registration);
function unregisterAnnotationType(registration)
Public Shared Sub UnregisterAnnotationType (registration As AutomationAnnotationTypeRegistration)

Parameters

registration
AutomationAnnotationTypeRegistration

A registration object returned by RegisterAnnotationType(System.Guid).

Remarks

An annotation type registration lasts as long as the process for which it was registered. You can call this method, or let the registration expire with the process for which it was registered.

If the same annotation type is registered more than once, this method must be called for each.

Applies to