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


INetworkBuild.UpdateSchema Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

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 _
)
[C#]
public void UpdateSchema (
    IDENetworkDataset DataElement
);
[C++]
HRESULT UpdateSchema(
  IDENetworkDataset* DataElement
);
[C++]

Parameters DataElement [in]
DataElement is a parameter of type IDENetworkDataset

Product Availability

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

Remarks

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