ArcFM Responder Mobile Developer Guide
ConnectFeature Method (INetworkConnect)
Example 






The feature to connect.
Connects the given feature.
Syntax
'Declaration
 
Sub ConnectFeature( _
   ByVal feature As ESRI.ArcGIS.Geodatabase.IFeature _
) 
'Usage
 
Dim instance As INetworkConnect
Dim feature As ESRI.ArcGIS.Geodatabase.IFeature
 
instance.ConnectFeature(feature)
void ConnectFeature( 
   ESRI.ArcGIS.Geodatabase.IFeature feature
)
procedure ConnectFeature( 
    feature: ESRI.ArcGIS.Geodatabase.IFeature
); 
function ConnectFeature( 
   feature : ESRI.ArcGIS.Geodatabase.IFeature
);
void ConnectFeature( 
   ESRI.ArcGIS.Geodatabase.IFeature* feature
) 
void ConnectFeature( 
   ESRI.ArcGIS.Geodatabase.IFeature^ feature
) 

Parameters

feature
The feature to connect.
Example
void ConnectFeature(IFeature feature)
{
    if (Editor.EditState != EditState.StateEditing)
        throw new InvalidOperationException("You must be editing to connect a feature.");
            
    var connect = new ConnectElectric();
    Editor.StartOperation();
    connect.ConnectFeature(feature);
    Editor.StopOperation("Connect feature.");
}
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

INetworkConnect Interface
INetworkConnect Members

Send Feedback