ArcFM Responder Mobile Developer Guide
IsEnabled Method
Example 






The name of joined table containing the plugin field e.g. PrimaryMeter.
Determines whether the plugin field will be displayed for the given electric feature class.
Syntax
'Declaration
 
Function IsEnabled( _
   ByVal electricTableName As System.String _
) As System.Boolean
'Usage
 
Dim instance As IFeederField
Dim electricTableName As System.String
Dim value As System.Boolean
 
value = instance.IsEnabled(electricTableName)
System.bool IsEnabled( 
   System.string electricTableName
)
function IsEnabled( 
    electricTableName: System.String
): System.Boolean; 
function IsEnabled( 
   electricTableName : System.String
) : System.boolean;
System.bool IsEnabled( 
   System.string* electricTableName
) 
System.bool IsEnabled( 
   System.String^ electricTableName
) 

Parameters

electricTableName
The name of joined table containing the plugin field e.g. PrimaryMeter.

Return Value

true if the field is enabled for the given table;' otherwise, false.
Example
public bool IsEnabled(string electricTableName)
{
    // Enable the plugin field for distribution conductors.
    switch (electricTableName)
    {
        case "PriOHElectricLineSegment":
        case "PriUGElectricLineSegment":
        case "SecOHElectricLineSegment":
        case "SecUGElectricLineSegment":
            return true;
        default:
            return false;
    }
}
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

IFeederField Interface
IFeederField Members

Send Feedback