AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ToolHelper..::..DeleteObject<(Of <(<'T>)>)> Method (ActionArgs, T)

Deletes the specified business object using the provided action arguments.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public ToolHelperResult DeleteObject<T>(
	ActionArgs aa,
	T businessObject
)
where T : BusinessObject<T>, BusinessObject<T>

Type Parameters

T
The type of business object to delete.

Parameters

aa
Type: AdvantageCMS.Core.Admin.Event..::..ActionArgs
The action arguments containing user, SQL connection, and domain/language context.
businessObject
Type: T
The business object to delete.

Return Value

A ToolHelperResult indicating the outcome of the deletion.

Exceptions


ExceptionCondition
ExceptionThrown when the ToolHelper was not initialized with a SQL connection.