ArcGIS Pro 2.6 API Reference Guide
RemoveFlag Method

ArcGIS.Core.Data.UtilityNetwork.NetworkDiagrams Namespace > NetworkDiagram Class : RemoveFlag Method
The type of NetworkDiagramFlagType to remove.
The DiagramElement ID associated to the flag to remove.
Removes a flag in this network diagram.
Syntax
Public Sub RemoveFlag( _
   ByVal flagType As NetworkDiagramFlagType, _
   ByVal diagramElementID As Integer _
) 

Parameters

flagType
The type of NetworkDiagramFlagType to remove.
diagramElementID
The DiagramElement ID associated to the flag to remove.
Exceptions
ExceptionDescription
A geodatabase-related exception has occurred.
Remarks
This routine generates its own editing transaction, and therefore cannot be wrapped in a separate transaction. Because the editing performed by this routine cannot be undone, this routine can also not be called within an editing session. All edits in the current edit session must be saved or discarded before calling this routine.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

NetworkDiagram Class
NetworkDiagram Members