AccessObjectProperties.Add 方法 (Access)AccessObjectProperties.Add method (Access)

可以使用 Add 方法将新的属性作为 AccessObjectProperty 对象添加到 AccessObject 对象的 AccessObjectProperties 集合。You can use the Add method to add a new property as an AccessObjectProperty object to the AccessObjectProperties collection of an AccessObject object.

语法Syntax

expressionexpression. Add( _PropertyName_, _Value_ )

_表达式_一个代表AccessObjectProperties对象的变量。expression A variable that represents an AccessObjectProperties object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
PropertyNamePropertyName 必需Required StringString 字符串表达式,表示新属性的名称。A string expression that's the name of the new property.
ValueValue 必需Required VariantVariant 一个 Variant 值,对应于选项设置。A Variant value corresponding to the option setting. 值参数的设置取决于某个特定选项的可能设置。The setting of the value argument depends on the possible settings for a particular option. 可以是一个常量或一个字符串值。Can be a constant or a string value.

注解Remarks

可以使用 AccessObjectProperties 集合 中删除 方法来删除现有的属性。You can use the Remove method of the AccessObjectProperties collection to delete an existing property.

另请参阅See also

AccessObjectProperties 集合AccessObjectProperties Collection