(翻译)MapObjects的Updatable属性的说明

英文原文来源于:MapObjects Online Reference(见附件)
一、 Updatable属性
返回一个真假值,标示记录对象是否可以编辑
二、 语法:
object.Updatable
这个Updatable属性的语法包含以下部分:

部分
描述
Object
一个对数据集对象评价的对象表达式
三、 返回值
Updatable属性返回值:

返回值
描述
True
对象可以执行更改或更新操作
False
对象不能执行更改或更新操作
四、 备注:
如果返回值为True,则标示MapObjects是当前可以以独占的写入 底层记录集数据源。
如果返回值为False,此时,或则数据源底层记录集是只读的( 一种不能被 MapObjects 编辑的类型,比如: ARC/INFO 模式,或则一个属性表数据源),或则数据源正被另外的程序使用着;或则被其他的程序以独占的写入。GeoDataset的AllowSharing属性值将影响到GeoDataset的数据记录的Updatable属性。
在基于shp文件的地图层记录集的情况下,一个可能引起Updatable属性返回False的可能性是,存在一个或多个AddRelates(额外的联系)于记录集合其他的表之间。
MapObjects将不会在一个被其他的程序打开编辑的shp文件上执行编辑。 要么,true值表明记录集描述一个可能被其他程序编辑的SDE层。
英文原文
一、 Updatable property
Returns a value that indicates whether changes can be made to a Recordset object.
二、 Syntax
object.Updatable
The Updatable property syntax has these parts:

Part
Description
object
An object expression that evaluates to a Recordset object.
三、 Return Values
The Updatable property return values are:

Value
Description
True
The object can be changed or updated.
False
The object cannot be changed or updated.
四、 Remarks:
If the return value is True, this indicates that MapObjects is currently able to gain exclusive write access to the data source underlying the Recordset.
If the return value is False then either the data source underlying the Recordset is read-only; of a type that MapObjects cannot edit, e.g. an ARC/INFO coverage or an attribute table data source; or that the data source is currently being edited by another application, or has been opened with exclusive write access by another application. The value of the AllowSharing property of a GeoDataset will affect the Updatable property of the GeoDataset's Recordset.
In the case of a Recordset based on a shapefile MapLayer, an additional cause of the Updatable property returning False is the presence of one of more AddRelates between the Recordset and other Tables.
MapObjects will not perform edits on a Shapefile that has been opened for editing by another application. Alternatively, a value of True indicates that the Recordset represents an SDE layer that the application may edit.
总 结
其中有两处不知道怎么翻译:
1、underlying the Recordset,我翻译成了“底层记录集”;
2、If the return value is False then either the data source underlying the Recordset is read-only; of a type that MapObjects cannot edit, e.g. an ARC/INFO coverage or an attribute table data source;……几句话更难了,不知道“of a type that MapObjects cannot edit, e.g. an ARC/INFO coverage or an attribute table data source”对谁修饰,我翻译的时候理解为对前面的“read-only”进行解释说明的,不知道对不对;
希望有谁看到了的话,帮忙看看!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值