Accessor callbacks are invoked when a specific object property is accessed by a script.
访问器回调函数,当指定的对象属性被脚本访问的时候被调用。
Then expose these through set and get accessor functions, making sure that the set functions publish their changes to the property change support mechanism.
然后通过set和get存取器函数公开这些字段,确保set函数将其更改发布到属性更改支持机制中。
Each property has an accessor and a mutator (getter and setter).
每个属性具有一个accessor和mutator (getter和setter)。
Properties enable data hiding, the accessor methods hide the implementation of the property.
属性启用数据隐藏,访问器方法隐藏属性的实现。
This includes property accessor methods and events.
其中包括属性访问器方法和事件。
The accessor of an interface property does not have a body.
接口属性的访问器不具有体。
In general, you put demands for less restrictive permissions on the get accessor rather than on the set accessor, unless the property holds sensitive information, such as a password.
一般而言,放入取得存取子的需求其使用权限限制会少于设定存取子,含有敏感资讯的属性除外,如密码。
A base class access is permitted only in a constructor, an instance method, or an instance property accessor.
基类访问只能在构造函数、实例方法或实例属性访问器中进行。
A base class access is permitted only in a constructor, an instance method, or an instance property accessor.
基类访问只能在构造函数、实例方法或实例属性访问器中进行。
应用推荐