ArcFM Engine Developer Guide
SupportsFeatureClass Method


IFeatureClass
For the selected map set feature layer, the object should return true if it can name export files for this feature class.
Syntax
'Declaration
 
Function SupportsFeatureClass( _
   ByVal pFeatureClass As ESRI.ArcGIS.Geodatabase.IFeatureClass _
) As Boolean
'Usage
 
Dim instance As IMMNamer
Dim pFeatureClass As ESRI.ArcGIS.Geodatabase.IFeatureClass
Dim value As Boolean
 
value = instance.SupportsFeatureClass(pFeatureClass)
bool SupportsFeatureClass( 
   ESRI.ArcGIS.Geodatabase.IFeatureClass pFeatureClass
)

Parameters

pFeatureClass
IFeatureClass

Return Value

Boolean
Example
The following code sample demonstrates how the IMMNamer::SupportsFeatureClass method may be implemented.
Visual Basic Copy Code
Private Function IMMNamer_SupportsFeatureClass(ByVal _
FeatureClass As IFeatureClass) As Boolean
    IMMNamer_SupportsFeatureClass = False
    Dim pModelNameManager As IMMModelNameManager
    Set pModelNameManager = New MMModelNameManager
    If pModelNameManager Is Nothing Then Exit Function
        Dim pObjectClass As IObjectClass
        Set pObjectClass = FeatureClass
        If Not pObjectClass Is Nothing Then
            IMMNamer_SupportsFeatureClass = _
            pModelNameManager.ContainsClassModelName(FeatureClass, "MapGrid")
    End If
End Function
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

IMMNamer Interface
IMMNamer Members

 

 


Send Comment