Delete an Asset.
Namespace: Cartella.InterfacesAssembly: AssetManagementSystem (in AssetManagementSystem.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
| C# |
|---|
void DeleteAsset( ref IAsset assetToDelete ) |
| Visual Basic |
|---|
Sub DeleteAsset ( _ ByRef assetToDelete As IAsset _ ) |
| Visual C++ |
|---|
void DeleteAsset( IAsset^% assetToDelete ) |
Parameters
- assetToDelete
- Type: Cartella.Interfaces..::..IAsset%
Asset to be deleted. Cannot be null
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Thrown when null parameter passed in |
| System..::..ArgumentException | Thrown if current Asset object doesn't have AssetManager reference |
| System..::..MemberAccessException | Thrown if database procedure not present |