ArcGIS Pro 2.7 API Reference Guide
LockSection Method

ArcGIS.Desktop.Mapping Namespace > VoxelLayer Class : LockSection Method
The definition of the section to lock
Locks the specified section to the currently selected variable profile. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void LockSection( 
   SectionDefinition sectionDef
)
Public Sub LockSection( _
   ByVal sectionDef As SectionDefinition _
) 

Parameters

sectionDef
The definition of the section to lock
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run
Section is null
Section not found in the collection of sections
Section cannot be locked
Remarks
If a section cannot be locked a System.ArgumentException is thrown. Refer to CanLockSection
. When a section is locked, its position can no longer be updated.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

VoxelLayer Class
VoxelLayer Members