Public Sub DeleteSection( _ ByVal lockedSectionDef As LockedSectionDefinition _ )
public void DeleteSection( LockedSectionDefinition lockedSectionDef )
Parameters
- lockedSectionDef
- The definition of the locked section to delete
Public Sub DeleteSection( _ ByVal lockedSectionDef As LockedSectionDefinition _ )
public void DeleteSection( LockedSectionDefinition lockedSectionDef )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
| System.ArgumentException | Locked section not found in the collection of sections |
| System.ArgumentNullException | Locked section is null |
{
// Note: call within QueuedTask.Run()
{
if (voxelLayer.GetLockedSections().Count() == 0)
return;
//Delete the last locked section from the collection of
//locked sections
voxelLayer.DeleteSection(voxelLayer.GetLockedSections().Last());
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)