Delete a object of a generic type.

Namespace: Cartella.Interfaces
Assembly: CartellaData (in CartellaData.dll) Version: 4.1.0.171 (4.1.0.171)

Syntax

C#
bool DeleteObject<T>(
	bool permanentDelete,
	ref T obj
)
where T : class, new(), ICartellaObject
Visual Basic
Function DeleteObject(Of T As {Class, New, ICartellaObject}) ( _
	permanentDelete As Boolean, _
	ByRef obj As T _
) As Boolean
Visual C++
generic<typename T>
where T : ref class, gcnew(), ICartellaObject
bool DeleteObject(
	bool permanentDelete, 
	T% obj
)

Parameters

permanentDelete
Type: System..::..Boolean
obj
Type: T%
Object to delete

Type Parameters

T
Type of the object to delete

Field Value

Boolean

Return Value

True if successful

See Also