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
 
<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 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 Boolean
 
value = instance.Enabled(pRelationshipClass, pOriginClass, pDestClass, eEvent)
[DispId(1610678272)]
bool Enabled( 
   ESRI.ArcGIS.Geodatabase.IRelationshipClass pRelationshipClass,
   ESRI.ArcGIS.Geodatabase.IObjectClass pOriginClass,
   ESRI.ArcGIS.Geodatabase.IObjectClass pDestClass,
   mmEditEvent eEvent
) {get;}

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 XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IMMRelationshipAUStrategyEx Interface
IMMRelationshipAUStrategyEx Members

 

 


Send Comment