This document is archived and information here might be outdated.  Recommended version.


INetAttributesEdit.SetDisabledState Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetAttributesEdit Interface > INetAttributesEdit.SetDisabledState Method
ArcGIS Developer Help

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 _
)
[C#]
public void SetDisabledState (
    int EID,
    esriElementType ElementType,
    bool disableState
);
[C++]
HRESULT SetDisabledState(
  long EID,
  esriElementType ElementType,
  VARIANT_BOOL disableState
);
[C++]
Parameters
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 bool

Product Availability

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

Remarks

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