ArcObjects Library Reference (GeoDatabase)  

INetworkWorkspace2.CreateNetworkEx Method

Creates a logical network based on the specified configuration keyword.

[Visual Basic .NET]
Public Function CreateNetworkEx ( _
    ByVal NetworkName As String, _
    ByVal NetworkType As esriNetworkType, _
    ByVal buildNormalizedTables As Boolean, _
    ByVal ConfigKeyword As String, _
    ByVal formatNum As Integer _
) As INetwork
[C#]
public INetwork CreateNetworkEx (
    string NetworkName,
    esriNetworkType NetworkType,
    bool buildNormalizedTables,
    string ConfigKeyword,
    int formatNum
);
[C++]
HRESULT CreateNetworkEx(
  BSTR NetworkName,
  esriNetworkType NetworkType,
  VARIANT_BOOL buildNormalizedTables,
  BSTR ConfigKeyword,
  long formatNum,
  INetwork** Network
);
[C++]

Parameters

NetworkName [in]   NetworkName is a parameter of type BSTR NetworkType [in]

  NetworkType is a parameter of type esriNetworkType

buildNormalizedTables [in]   buildNormalizedTables is a parameter of type VARIANT_BOOL ConfigKeyword [in]   ConfigKeyword is a parameter of type BSTR formatNum [in]   formatNum is a parameter of type long Network [out, retval]

  Network is a parameter of type INetwork

Product Availability

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

Remarks

CreateNetworkEx is used to create a logical network that is not associated with a geometric network.  If you want to create a geometric network along with the logical network, then use the INetworkCollection2::CreateGeometricNetworkEx method.
CreateNetworkEx differs from INetworkWorkspace::CreateNetwork in that this method contains additional parameters to specify the Configuration keyword for creating networks in ArcSDE and for specifying the storage format for the network.  The configuartion keyword specifies how the logical network tables and indexes are stored in ArcSDE.
The format parameter outlines the storage of feature class IDs which participate in the geometric network. The storage format can be specified as either narrow or wide.  Networks with a narrow format can only contain feature classes with class IDs less than 10,000 while networks with a wide format have no limitation on the feature class ID value.  Unless you specifically require narrow networks, the format should always be set to a value of 1 for the wide storage format.
The connectivity for the logical network is stored in a series of tables in the database. The actual connectivity is managed in a series of BLOBs.

See Also

INetworkWorkspace2 Interface