
Visual Basic (Declaration)
C#
If the item to delete is absent, this task has no effect.
The result of this task is true if the item was successfully deleted.
The code snippet below executes a Delete Item task.
C# | ![]() |
---|---|
// item as a ESRI.ArcGIS.Client.BAServer.FolderItem. FolderItem item = new FolderItem(workspaceName, projectName, FolderType.esriFolderStoreLayers, itemName); deleteItemTask.ExecuteAsync(item, new AsyncResponder(resultHandler, faultHandler)); |
System.Object
ESRI.ArcGIS.Client.BACore.Client.AbstractTask
ESRI.ArcGIS.Client.BACore.Client.BATask<TResult,TEventArgs>
ESRI.ArcGIS.Client.BAServer.Tasks.BAServerTask<TResult>
ESRI.ArcGIS.Client.BAServer.Tasks.Repository.DeleteItemTask
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family