ArcObjects Library Reference (GeoDatabase)  

INetAttributesEdit.SetDisabledState Method

Sets the disabled state of the specified network element.

[Visual Basic .NET]
Public Sub SetDisabledState ( _
    ByVal EID As Integer, _
    ByVal ElementType As esriElementType, _
    ByVal disableState As Boolean _
public void SetDisabledState (
    int EID,
    esriElementType ElementType,
    bool disableState
HRESULT SetDisabledState(
  long EID,
  esriElementType ElementType,
  VARIANT_BOOL disableState


EID [in]   EID is a parameter of type long ElementType [in]

  ElementType is a parameter of type esriElementType

disableState [in]   disableState is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Disabling an element in the network is different than creating a barrier on a network element. A disabled element will have an effect when setting the flow direction on a network. Setting barriers on a network through the INetworkAnalysisExtBarriers interface only affects traces.

Only use this method on stand-alone logical networks.  For geometric networks, use IRowBuffer::Value and IRow::Store to modify the value of the feature attribute.

See Also

INetAttributesEdit Interface