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


INetworkWorkspace.CreateNetwork Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkWorkspace.CreateNetwork Method

Creates a logical network.

[Visual Basic .NET]
Public Function CreateNetwork ( _
    ByVal NetworkName As String, _
    ByVal NetworkType As esriNetworkType, _
    ByVal buildNormalizedTables As Boolean _
) As INetwork
[C#]
public INetwork CreateNetwork (
    string NetworkName,
    esriNetworkType NetworkType,
    bool buildNormalizedTables
);
[C++]
HRESULT CreateNetwork(
  BSTR NetworkName,
  esriNetworkType NetworkType,
  VARIANT_BOOL buildNormalizedTables,
  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 Network [out, retval]
Network is a parameter of type INetwork

Product Availability

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

Remarks

CreateNetwork should be used to create a logical network that is not associated with a geometric network.  If you want to create a geometric network that with it's associated logical network, use:
INetworkCollection::CreateGeometricNetwork
INetworkCollection2::CreateGeometricNetworkEx
INetworkLoader
Use  INetworkWorkspace2::CreateNetworkEx to create a stand-alone logical network based on a configuration keyword.
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.
As of the 10.0 release; the CreateNetwork method is no longer supported on Logical Networks that is not associated with a geometric network.

See Also

INetworkWorkspace Interface