ArcGIS Pro 2.8 API Reference Guide
CanLockSection Method

ArcGIS.Desktop.Mapping Namespace > VoxelLayer Class : CanLockSection Method
The definition of the section to determine whether it can be locked
Determines whether a section can be locked. Sections are locked to the current variable profile. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public bool CanLockSection( 
   SectionDefinition sectionDef
)
Public Function CanLockSection( _
   ByVal sectionDef As SectionDefinition _
) As Boolean

Parameters

sectionDef
The definition of the section to determine whether it can be locked

Return Value

True if the specified section can be locked.
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
Remarks
For a section to be lockable it must at least be partially within the sliced volume.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

VoxelLayer Class
VoxelLayer Members