ArcObjects Library Reference (GeoDatabase)  

INetworkWorkspace.OpenNetwork Method

Opens a logical network.

[Visual Basic .NET]
Public Function OpenNetwork ( _
    ByVal NetworkName As String, _
    ByVal NetworkType As esriNetworkType, _
    ByVal networkAccess As esriNetworkAccess _
) As INetwork
[C#]
public INetwork OpenNetwork (
    string NetworkName,
    esriNetworkType NetworkType,
    esriNetworkAccess networkAccess
);
[C++]
HRESULT OpenNetwork(
  BSTR NetworkName,
  esriNetworkType NetworkType,
  esriNetworkAccess networkAccess,
  INetwork** Network
);
[C++]

Parameters

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

  NetworkType is a parameter of type esriNetworkType

networkAccess [in]

  networkAccess is a parameter of type esriNetworkAccess

Network [out, retval]

  Network is a parameter of type INetwork

Product Availability

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

Remarks

The OpenNetwork method should only be used to open a logical network that does not have any corresponding geometric network. Opening a logical network with a corresponding geometric network for the purposes of updating network elements, can lead to inconsistencies between the logical and geometric networks.
As of the 10.0 release; the OpenNetwork method is no longer supported on Logical Networks that are associated with a Geometric Network.

See Also

INetworkWorkspace Interface