Click or drag to resize

IGHAObjectSubscribeToDelete Method

[This is preliminary documentation and is subject to change.]

Subscribes to the Delete object event for the object. Invokes event handler if a child object is deleted under the owning object.

Namespace:  GHASchema
Assembly:  GHASchema (in GHASchema.dll) Version: 1.1.8074.31450 (1.0.0.0)
Syntax
C#
Guid SubscribeToDelete(
	Object Subscriber,
	string EventHandlerName,
	bool persist = true
)

Parameters

Subscriber
Type: SystemObject
Object containing the event handler
EventHandlerName
Type: SystemString
Name of the event handler to invoke in response to the object Delete event
persist (Optional)
Type: SystemBoolean
Makes the subscription persist across GHA restarts if true. Subscription only valid until the next restart if false

Return Value

Type: Guid
Unique identifier for the subscription
See Also