AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

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

Deletes the specified business object using the provided service account credentials.

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

Syntax


public ToolHelperResult DeleteObject<T>(
	string serviceAccount,
	T businessObject
)
where T : BusinessObject<T>, BusinessObject<T>

Type Parameters

T
The type of business object to delete.

Parameters

serviceAccount
Type: String
The CMS service account username.
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.