ArcFM Solution Developer Guide
ValidateSystemTables Method (IMMDefaultLoginObject2)






IWorkspace object indicating the workspace to which the user is logging in.

String value that tells the user which tables where NOT validated

This method returns a boolean value indicating whether the ArcFM System Tables exist in the given workspace.
Syntax
'Declaration
 
Function ValidateSystemTables( _
   ByVal pWorkspace As ESRI.ArcGIS.Geodatabase.IWorkspace, _
   ByVal sMsgCaption As System.String _
) As System.Boolean
'Usage
 
Dim instance As IMMDefaultLoginObject2
Dim pWorkspace As ESRI.ArcGIS.Geodatabase.IWorkspace
Dim sMsgCaption As System.String
Dim value As System.Boolean
 
value = instance.ValidateSystemTables(pWorkspace, sMsgCaption)
System.bool ValidateSystemTables( 
   ESRI.ArcGIS.Geodatabase.IWorkspace pWorkspace,
   System.string sMsgCaption
)
function ValidateSystemTables( 
    pWorkspace: ESRI.ArcGIS.Geodatabase.IWorkspace;
    sMsgCaption: System.String
): System.Boolean; 
function ValidateSystemTables( 
   pWorkspace : ESRI.ArcGIS.Geodatabase.IWorkspace,
   sMsgCaption : System.String
) : System.boolean;
System.bool ValidateSystemTables( 
   ESRI.ArcGIS.Geodatabase.IWorkspace* pWorkspace,
   System.string* sMsgCaption
) 
System.bool ValidateSystemTables( 
   ESRI.ArcGIS.Geodatabase.IWorkspace^ pWorkspace,
   System.String^ sMsgCaption
) 

Parameters

pWorkspace

IWorkspace object indicating the workspace to which the user is logging in.

sMsgCaption

String value that tells the user which tables where NOT validated

Return Value

Boolean
Example
The following code sample demonstrates how the IMMDefaultLoginObject2::ValidateSystemTables method may be implemented.
Visual Basic Copy Code
Private Function GetSystemTables(pWorkspace As IWorkspace, InvalidTables As Collection) As Boolean

 Set InvalidTables = New Collection

 Dim pMMTableUtils As IMMTableUtils
 Set pMMTableUtils = New MMTableUtils

 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_CLASS_MODELNAMES") Then
  InvalidTables.Add "MM_CLASS_MODELNAMES"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_FIELD_MODELNAMES") Then
  InvalidTables.Add "MM_FIELD_MODELNAMES"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_STORED_DISPLAYS") Then
  InvalidTables.Add "MM_STORED_DISPLAYS"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_SYSTEM_STORED_DISPLAYS") Then
   InvalidTables.Add "MM_SYSTEM_STORED_DISPLAYS"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_PAGE_TEMPLATES") Then
  InvalidTables.Add "MM_PAGE_TEMPLATES"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_SYSTEM_PAGE_TEMPLATES") Then
  InvalidTables.Add "MM_SYSTEM_PAGE_TEMPLATES"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_DOCUMENTS") Then
  InvalidTables.Add "MM_DOCUMENTS"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_SYSTEM_DOCUMENTS") Then
  InvalidTables.Add "MM_SYSTEM_DOCUMENTS"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_PERSIST_INFO") Then
  InvalidTables.Add "MM_PERSIST_INFO"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_SYSTEM_PERSIST_INFO") Then
  InvalidTables.Add "MM_SYSTEM_PERSIST_INFO"
 End If

 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_PACKAGES") Then
   InvalidTables.Add "MM_PACKAGES"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_HIDDEN_PACKAGES") Then
   InvalidTables.Add "MM_HIDDEN_PACKAGES"
 End If
 If Not pMMTableUtils.CanReadSystemTable(pWorkspace, "MM_SYSTEM_PACKAGES") Then
   InvalidTables.Add "MM_SYSTEM_PACKAGES"
 End If

 If InvalidTables.Count = 0 Then
   GetSystemTables = True
 End If

End Function
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

IMMDefaultLoginObject2 Interface
IMMDefaultLoginObject2 Members

Send Feedback