ArcFM Responder Mobile Developer Guide
GetNetworkByWeightName(IWorkspace,String) Method






The workspace.
Gets the geometric network by visiting all datasets in the workspace and returning the dataset which has a weight value matching the given weight name.
Syntax
'Declaration
 
Public Shared Function GetNetworkByWeightName( _
   ByVal workspace As ESRI.ArcGIS.Geodatabase.IWorkspace, _
   ByVal weightName As System.String _
) As ESRI.ArcGIS.Geodatabase.IGeometricNetwork
'Usage
 
Dim workspace As ESRI.ArcGIS.Geodatabase.IWorkspace
Dim weightName As System.String
Dim value As ESRI.ArcGIS.Geodatabase.IGeometricNetwork
 
value = NetworkIdentification.GetNetworkByWeightName(workspace, weightName)
public static ESRI.ArcGIS.Geodatabase.IGeometricNetwork GetNetworkByWeightName( 
   ESRI.ArcGIS.Geodatabase.IWorkspace workspace,
   System.string weightName
)
public function GetNetworkByWeightName( 
    workspace: ESRI.ArcGIS.Geodatabase.IWorkspace;
    weightName: System.String
): ESRI.ArcGIS.Geodatabase.IGeometricNetwork; static; 
public static function GetNetworkByWeightName( 
   workspace : ESRI.ArcGIS.Geodatabase.IWorkspace,
   weightName : System.String
) : ESRI.ArcGIS.Geodatabase.IGeometricNetwork;
public: static ESRI.ArcGIS.Geodatabase.IGeometricNetwork* GetNetworkByWeightName( 
   ESRI.ArcGIS.Geodatabase.IWorkspace* workspace,
   System.string* weightName
) 
public:
static ESRI.ArcGIS.Geodatabase.IGeometricNetwork^ GetNetworkByWeightName( 
   ESRI.ArcGIS.Geodatabase.IWorkspace^ workspace,
   System.String^ weightName
) 

Parameters

workspace
The workspace.
weightName

Return Value

Returns the geometric network by visiting all datasets in the workspace and returning the dataset which has a weight value matching the given weight name.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NetworkIdentification Class
NetworkIdentification Members

Send Feedback