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.
一般而言,放入取得存取子的需求其使用权限限制会少于设定存取子,含有敏感资讯的属性除外,如密码。
So, the state handling API includes a set of easy-to-use interfaces (part of the Accessor API) providing typed read and write access to navigational state information.
因此,状态处理API包含一组易于使用的接口(属于访问器 API),可提供对导航状态信息的类型化读写访问。
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函数将其更改发布到属性更改支持机制中。
Use the accessor object to set the credentials.
使用accessor对像设置证书。
The get() accessor retrieves the current thread's value of the variable; the set() accessor modifies the current thread's value.
get()访问器检索变量的当前线程的值;set() 访问器修改当前线程的值。
Accessor methods often implement important behavior that occurs whenever a value is retrieved or set.
存取方法常常实现重要行为是无论何时一个值被检索或者设置都会被重现。
Accessor methods often implement important behavior that occurs whenever a value is retrieved or set.
存取方法常常实现重要行为是无论何时一个值被检索或者设置都会被重现。
应用推荐