ArcFM Responder Mobile Developer Guide
DisconnectFeature Method (INetworkConnect)
Example 






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

Parameters

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