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

INetworkBuild.UpdateSchema Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkBuild Interface > INetworkBuild.UpdateSchema Method
ArcGIS Developer Help

INetworkBuild.UpdateSchema Method

Updates the schema for the network dataset based upon the given data element.

[Visual Basic .NET]
Public Sub UpdateSchema ( _
    ByVal DataElement As IDENetworkDataset _
public void UpdateSchema (
    IDENetworkDataset DataElement
HRESULT UpdateSchema(
  IDENetworkDataset* DataElement
DataElement [in]

DataElement is a parameter of type IDENetworkDataset*

Product Availability

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


The UpdateSchema method should be used to make multiple schema changes to a network dataset in one operation. Use the Delete and Add methods for Attributes and Sources in order to make simple schema edits.

Use IDatasetComponent::DataElement to retrieve a copy of the data element for this network dataset. Make the changes to the data element copy, then call UpdateSchema to update the network dataset. The end user is responsible for ensuring the integrity of the data element when it’s supplied to the UpdateSchema method.

Certain operations are not allowed and will return an error when performed with the UpdateSchema method, these include:

See Also

INetworkBuild Interface