ArcFM Solution Developer Guide
Enabled Property (IMMRelationshipAUStrategyEx)






IRelationshipClass
An IObjectClass object that returns the origin class of the relationship
An IObjectClass object that returns the destination class of the relationship
A value from the mmEditEvent enumeration that indicates the edit event that launched the autoupdater
This property uses the origin and destination classes to determine whether the autoupdater should be enabled for the relationship selected.
Syntax
'Declaration
 
<System.Runtime.InteropServices.DispIdAttribute(1610678272)>
ReadOnly Property Enabled( _
   ByVal pRelationshipClass As ESRI.ArcGIS.Geodatabase.IRelationshipClass, _
   ByVal pOriginClass As ESRI.ArcGIS.Geodatabase.IObjectClass, _
   ByVal pDestClass As ESRI.ArcGIS.Geodatabase.IObjectClass, _
   ByVal eEvent As mmEditEvent _
) As System.Boolean
'Usage
 
Dim instance As IMMRelationshipAUStrategyEx
Dim pRelationshipClass As ESRI.ArcGIS.Geodatabase.IRelationshipClass
Dim pOriginClass As ESRI.ArcGIS.Geodatabase.IObjectClass
Dim pDestClass As ESRI.ArcGIS.Geodatabase.IObjectClass
Dim eEvent As mmEditEvent
Dim value As System.Boolean
 
value = instance.Enabled(pRelationshipClass, pOriginClass, pDestClass, eEvent)
[System.Runtime.InteropServices.DispId(1610678272)]
System.bool Enabled( 
   ESRI.ArcGIS.Geodatabase.IRelationshipClass pRelationshipClass,
   ESRI.ArcGIS.Geodatabase.IObjectClass pOriginClass,
   ESRI.ArcGIS.Geodatabase.IObjectClass pDestClass,
   mmEditEvent eEvent
) {get;}
read-only property Enabled( 
    pRelationshipClass: ESRI.ArcGIS.Geodatabase.IRelationshipClass;
    pOriginClass: ESRI.ArcGIS.Geodatabase.IObjectClass;
    pDestClass: ESRI.ArcGIS.Geodatabase.IObjectClass;
    eEvent: mmEditEvent
): System.Boolean; 
System.Runtime.InteropServices.DispIdAttribute(1610678272)
function get Enabled( 
   pRelationshipClass : ESRI.ArcGIS.Geodatabase.IRelationshipClass,
   pOriginClass : ESRI.ArcGIS.Geodatabase.IObjectClass,
   pDestClass : ESRI.ArcGIS.Geodatabase.IObjectClass,
   eEvent : mmEditEvent
) : System.boolean
[System.Runtime.InteropServices.DispId(1610678272)]
__property System.bool get_Enabled( 
   ESRI.ArcGIS.Geodatabase.IRelationshipClass* pRelationshipClass,
   ESRI.ArcGIS.Geodatabase.IObjectClass* pOriginClass,
   ESRI.ArcGIS.Geodatabase.IObjectClass* pDestClass,
   mmEditEvent eEvent
);
[System.Runtime.InteropServices.DispId(1610678272)]
property System.bool Enabled {
   System.bool get(ESRI.ArcGIS.Geodatabase.IRelationshipClass^ pRelationshipClass, ESRI.ArcGIS.Geodatabase.IObjectClass^ pOriginClass, ESRI.ArcGIS.Geodatabase.IObjectClass^ pDestClass, mmEditEvent eEvent);
}

Parameters

pRelationshipClass
IRelationshipClass
pOriginClass
An IObjectClass object that returns the origin class of the relationship
pDestClass
An IObjectClass object that returns the destination class of the relationship
eEvent
A value from the mmEditEvent enumeration that indicates the edit event that launched the autoupdater

Property Value

Returns a Boolean value indicating whether the autoupdater is enabled
Example
The following code sample demonstrates how the IMMRelationshipAUStrategyEx::Enabled property may be implemented.
Visual Basic Copy Code
Private Property Get IMMRelationshipAUStrategyEx_Enabled (ByVal pRelationshipClass _
As IRelationshipClass, ByVal pOriginClass As IObjectClass, _
ByVal pDestClass As IObjectClass, ByVal eEvent As mmEditEvent) As Boolean
    If pRelationshipClass Is Nothing Then Exit Property
    Dim pDS As IDataset
    Set pDS = pRelationshipClass
    IMMRelationshipAUStrategyEx_Enabled = (pDS.Name = "Transformer_TransformerUnit")
End Property
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

IMMRelationshipAUStrategyEx Interface
IMMRelationshipAUStrategyEx Members

Send Feedback