摘要
创建输出确认文件以便确认接收到之前收到的数据变更消息。
用法
语法
ExportAcknowledgementMessage_management (in_geodatabase, out_acknowledgement_file, in_replica)
参数 | 说明 | 数据类型 |
in_geodatabase | 指定要导出确认消息的复本地理数据库。地理数据库可以是本地地理数据库也可以是远程地理数据库。 | Workspace ; GeoDataServer |
out_acknowledgement_file | 指定要导出到的增量文件。 | File |
in_replica | 要导出确认消息的复本。 | String |
代码实例
ExportAcknowledgement 示例(Python 窗口)
import arcpy from arcpy import env env.workspace = "C:/Data" arcpy.ExportAcknowledgementMessage_management("MySDEdata.sde", "AcknowledgementMessage.xml" , "MyReplica1")
ExportAcknowledgement 示例 2(独立 Python 脚本)
# Name: ExportAcknowledgement_Example2.py # Description: Exports an acknowledgement message from a replica geodatabase (SDE). # Author: ESRI # Import system modules import arcpy from arcpy import env # Set workspace env.workspace = "C:/Data" # Set local variables in_geodatabase = "MySDEdata.sde" output_file = "AcknowledgementMessage.xml" replica_name = "MyReplica1" arcpy.ExportAcknowledgementMessage_management(in_geodatabase, output_file , replica_name)