Listing 6 shows a method that waits on a blocking queue until an item is available, regardless of whether it is interrupted.
清单6展示了一个方法,该方法等待一个阻塞队列,直到队列中出现一个可用项目,而不管它是否被中断。
Inline tracking: in this method change tracking information for an item is updated as the change is made.
内联跟踪:在这种方法中,项目的更改跟踪信息在做出更改时更新。
The important part to note is that we are creating a static method to create a list of item providers.
需要注意的重要一点是,我们创建了一个静态方法用于创建一系列的项目提供程序。
The first item in each tuple is a callable object (in this case a method pointer) and the second is a HTTP request type that the method should be called for.
每个元组的第一项是可调用对象(在这里是一个方法指针),第二项是HTTP请求类型,这种请求类型可以调用该方法。
The reason why we are using a BIRT method is that it is easier and more flexible, and offers solutions to challenges around work item reporting.
为什么我们要使用BIRT方法的原因,就是它更容易,更灵活,并且提供了应对工作项报表挑战的方案。
You usually do not find out the method name (item 3), and discovering item 4 does not make any sense.
您通常不会发现方法名(第3项),而且发现第4项也没什么意义。
This method will request a server for an array that lists all the children of the item.
该方法将向服务器请求一个列出该条目所有子条目的数组。
This method can be used to delete one item or a range of items.
使用此方法可以删除一个条目或一个条目范围。
So to define this method, Right click on the Model, add new Item, select CodeFile and name it NorthwindDataContext.cs and give it the implementation.
若要定义该方法,可以右击Model,通过addnewitem选择CodeFile,并命名为NorthwindDataContext . cs,然后给出如下的实现。
The add method adds a new item to the list, then returns the list in HTML.
add方法用于在列表中添加新的项目,然后再在HTML中返回列表。
Recall from Listing 8 how the login menu item invokes the authorize method with permissions.
回想一下清单8中登录菜单项是如何利用权限调用authorize方法的。
Otherwise, the next item is returned via the pop method.
否则,就通过pop方法返回下一项。
The add method just adds the to-do item to the table, then returns new contents for the results tag.
add方法把to - do项添加到表中,然后为得到的标记返回新的内容。
The XML format of the incoming request has each parameter being passed to the method as an item under the tag parameters.
传入请求的xml格式将每个参数作为parameters标记下的每个项目传递给方法。
Instead of using the get method, you simply ask for a particular item as if it were an array, as shown below.
无须使用get方法,只要寻找一个特殊项将它当作一个阵列,如下所示。
You pass eval the name of the field to evaluate and the method, in turn, determines the current data item and prepares a regular call through DataBinder.Eval.
您将计算的字段名和方法传递给Eval,决定当前的数据项并通过DataBinder . Eval准备一个常规调用。
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的访问方法返回项的值。
Given that the scrum method emphasizes work completed, not work started, it is preferable to start and complete a work item before moving on to the next item.
既然scrum方法强调的是完成的工作,而不是刚刚开始的工作,所以在将项目移动到另一个项目之前就启动并完成一个项目会更好。
To delete the book with the id of 103, you would simply set the URL to point to item 103, change the method to delete, then press GO again (Figure 22).
要删除ID为103的图书,您只需将URL设置为指向项目103,将方法更改为DELETE,然后再次单击GO(图22)。
Due to the functional nature of the API, it is necessary to pass a function (method) to many of these operations so that it can be performed on each item in the ParallelArray.
由于API的函数特性,传递一个函数(方法)给这些操作很有必要,这样就可以在ParallelArray中的每个项目上执行它。
You can now type Ctrl-M, Ctrl-V within a Controller action method, or right-click within an action method and choose the "Add view" context menu item to create new view templates.
你现在可以在一个控制器的action方法中键入Ctrl - M, Ctrl - V,或者在一个action方法中右击,选择“添加视图”上下文菜单项来生成新的视图模板。
An alternative method to accomplish the same result would test whether the current item in the tuple is even (using if not num % 2:) and, if true, would add the current item to the running total.
实现相同结果的另一种方法是测试tuple中的当前项是否是偶数(使用ifnot num %2:),如果为真,那么将当前项添加到运行总和中。
When the Google Map menu item is selected, the run method is triggered.
当Googlemap菜单项被选中时,runWithEvent方法即被触发。
The range method can also be used to iterate over a container, accessing each item in the sequence by using the appropriate index.
range方法还可用于迭代容器,通过使用适当的索引访问序列中的每一项。
In this method, you gather the Sametime partner's contact ID for which the Google Map Directions context menu item is selected.
在这个方法中,我们收集为其选中GoogleMapDirections上下文菜单项的Sametime合作伙伴的联系人ID。
Selecting this item provides a link to the createClusterMember method, which is described further down the page. This section helps you better understand how to use this method
选择这一项会提供createClusterMember方法的链接,页面下面进一步说明了这个方法。
Given that the Scrum method values work completed, not work started, it is preferable to start and complete a work item before moving on to the next item.
Scrum方法注重已完成的工作,而不是刚开始的工作,在移到下一个项目之前,就开始并完成一个工作是更好的。
A new method called ForAll allows each thread to call a delegate directly against each item.
一个新的ForAll方法允许每个线程直接对于每个元素执行某个委托调用。
In reality, you would need to expose an interface method, such as addInventory (product item), to restock a product.
实际上,您可能需要公开接口方法,例如addinventory (Productitem)用来重新储存产品。
In line 13, the bind_ callback method from the class zk.Widget is overridden to run the update() method and set the first list item as the selected one after the listbox is bound to the DOM tree.
第 13行,来自类zk.Widget的 bind_callback方法被重写来运行update() 方法,在listbox被绑定到DOM树之后,设置列表第一项作为选中项。
应用推荐