ArcGIS Pro 2.6 API Reference Guide
GetLineFeature Method

ArcGIS.Core.Data.UtilityNetwork Namespace > Subnetwork Class : GetLineFeature Method
Returns the ArcGIS.Core.Data.Feature from the SubnetLine table that corresponds to this subnetwork. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Feature GetLineFeature()
Public Function GetLineFeature() As Feature

Return Value

The ArcGIS.Core.Data.Feature from the SubnetLine table that corresponds to this subnetwork.
Exceptions
ExceptionDescription
A geodatabase-related exception has occurred.
Remarks
Note that if Update has not yet been called, or if the subnetwork does not contain any features with an AssetType, returned by Tier.ValidSubnetworkLines, the feature may not exist.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Subnetwork Class
Subnetwork Members