For this example (Figure 4), you will model a read-only indexer (thus it has only a get accessor) in the DrawingSurface class.
对于本实例(图4),您将对drawingsurface类中的只读索引器建模(因而它只有get存取器)。
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函数将其更改发布到属性更改支持机制中。
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.
一般而言,放入取得存取子的需求其使用权限限制会少于设定存取子,含有敏感资讯的属性除外,如密码。
Have each action store the window that created it, then it can use the accessor methods on that window to get to the objects it needs.
让每个操作存储创建它的窗口,然后对该窗口使用取值方法获取它所需的对象。
The client then calls the dynamic SDO accessor API to get information out of data objects and print it to the console, as shown here
客户机调用动态SDO访问器API,从数据对象中获得信息,并将其显示到控制台上
A member variable holds the list of configuration items, a constructor loads the items, and an accessor method called get returns the value of an item.
成员变量保存配置项的列表,构造程序装入项,然后名为get的访问方法返回项的值。
The get() accessor retrieves the current thread's value of the variable; the set() accessor modifies the current thread's value.
get()访问器检索变量的当前线程的值;set() 访问器修改当前线程的值。
The get() accessor retrieves the current thread's value of the variable; the set() accessor modifies the current thread's value.
get()访问器检索变量的当前线程的值;set() 访问器修改当前线程的值。
应用推荐