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
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:
- Toggling turn support on the network dataset. Once created, turn support on a network dataset cannot be changed.
- Removing the system junction source on the network dataset