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


INetworkWorkspace.OpenNetwork Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkWorkspace Interface > INetworkWorkspace.OpenNetwork Method
ArcGIS Developer Help

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
);
[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

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