ToolHelper..::..DeleteObject<(Of <(<'T>)>)> Method (String, T)
Deletes the specified business object using the provided service account credentials.
Namespace:
AdvantageCMS.Core.UtilsAssembly: 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
| Exception | Condition |
|---|---|
| Exception | Thrown when the ToolHelper was not initialized with a SQL connection. |

