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函数将其更改发布到属性更改支持机制中。
应用推荐