Click or drag to resize

IGHAObjectSubscribeToCreate Method

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

Subscribes to the Create object event for the object. Invokes event handler if a new object is created under the owning object.

Namespace:  GHASchema
Assembly:  GHASchema (in GHASchema.dll) Version: 1.1.8074.31450 (1.0.0.0)
Syntax
C#
Guid SubscribeToCreate(
	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 Create 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