ArcFM Engine Developer Guide
PostVersion Method


IWorkspace
String
String
Boolean
Boolean

IPropertySet that contains two types of properties:

Posts the version SourceVer to ancestor TargetVer. If AllowConflicts is false, check for conflict differences between the versions and stop the post if any are found.

If DeleteNonPostable is true or PostProperties is defined, then make a copy of the source version to be compressed. Delete all objects from non-postable object classes. For the objects that remain, delete any that do not meet the requirements of the post properties and post the temporary version.

You may use the PostProperties property set to pass in a field name or field model name and a pipe deliminated string of values. A feature that has the specified field or field model name will be posted only if the field contains any of the given values in the string. All other features that do NOT contain the specified field will be posted.

Syntax
'Declaration
 
Function PostVersion( _
   ByVal Workspace As ESRI.ArcGIS.Geodatabase.IWorkspace, _
   ByVal SourceVer As String, _
   ByVal TargetVer As String, _
   ByVal DeleteNonPostable As Boolean, _
   ByVal AllowConflicts As Boolean, _
   Optional ByVal PostProperties As ESRI.ArcGIS.esriSystem.IPropertySet _
) As Integer
'Usage
 
Dim instance As IMMVersioningUtils
Dim Workspace As ESRI.ArcGIS.Geodatabase.IWorkspace
Dim SourceVer As String
Dim TargetVer As String
Dim DeleteNonPostable As Boolean
Dim AllowConflicts As Boolean
Dim PostProperties As ESRI.ArcGIS.esriSystem.IPropertySet
Dim value As Integer
 
value = instance.PostVersion(Workspace, SourceVer, TargetVer, DeleteNonPostable, AllowConflicts, PostProperties)
int PostVersion( 
   ESRI.ArcGIS.Geodatabase.IWorkspace Workspace,
   string SourceVer,
   string TargetVer,
   bool DeleteNonPostable,
   bool AllowConflicts,
   ESRI.ArcGIS.esriSystem.IPropertySet PostProperties
)

Parameters

Workspace
IWorkspace
SourceVer
String
TargetVer
String
DeleteNonPostable
Boolean
AllowConflicts
Boolean
PostProperties

IPropertySet that contains two types of properties:

  • DesignID: Use this property to limit posts to rows where the DesignID is a specific value. For example, "DesignID"="9834" allows posts only to rows that have a DesignID value of 9834.
  • WorkFunction: Use this property to remove the rows that have a designated Work Function value. For example, "WorkFunction"="+|0|1|4|16|-10" would remove any rows that have a WorkFunction value that matches one of the values in the list provided (0, 1, 4, 16, -10).

Return Value

Long
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

IMMVersioningUtils Interface
IMMVersioningUtils Members

 

 


Send Comment