In the above code snippet, we check for the expected user role.
在上面的代码片段中,我们检查是否有预期的用户角色。
Thus in the above code, $newownernode becomes a child of $newfilesnode.
因此在上面的代码中,$newownernode成为了 $newfilesnode的子节点。
This approach would eliminate the need to cast in the above code, but it would not fix the bug.
这种方法可除去上面代码中类型强制转换的需要,但不修正错误。
Even in the absence of system failures, there is another risk worth discussing in the above code — concurrency.
甚至在系统没有发生故障时,上面讨论的代码还有另一种风险——并发性。
Three interesting things can be seen in the above code, demonstrating additional flexibility in configuring XMLToSQL
从上面的代码中可以发现三件有趣的事情,它展示了在配置XMLToSQL 的过程中其他的一些灵活性
In the above code snippet, we connect the "destroy" signal of our main window object to the gtk_main_quit function.
在上面的代码段中,我们将主窗口对象的“destroy ”信号连接到gtk_main _ quit函数。
So where we had done something like floor -= 4 in the above code, we could equally well have used subtract(floor,4,floor).
所以,我们在前面的代码中使用的floor-=4 ,可以替换为 subtract(floor,4,floor) 。
In the above code we are using a SQL statement that bypasses Entity Framework to get back the desired Destination objects.
在上面的代码中,我们使用一个SQL语句,绕过实体框架取回所需的目标对象。
In the above code snippet, the compiler will warn you about the not exported base class and the not exported class of the data member.
在上面的代码片断,编译器会警告你没有导出基类和类的数据成员。
In the above code, you declare that your document will have a root element called RSS and that this element will have a child element called channel.
在以上代码中,您声明文档将有一个rss根元素,并且它有一个channel子元素。
For example, besides house number and street name, the Address object has one more optional property as Cross street which is not shown in the above code segment.
例如,除了门牌号和街道名称,Address对象还有几个可选属性,如CrossStreet,它在上面的代码片段中并没有用到。
The client deployment descriptor, in a file called application-client.xml, contains references to the JNDI names of the JMS connection factory and queue that are used in the above code.
客户端部署描述符,在一个称为application-client.xml的文件中,包含对用于上述代码中JMS连接工厂和队列中JNDI名称的引用。
As shown in the above code, the idea is to implement the required business logic and then either prepare the Properties object or else pass the file name so that the custom FTP class is invoked.
如以上代码所示,我们要先执行所需的业务逻辑,然后准备Properties对象,或者传递文件名,以便调用自定义ftp类。
In the code above, the constructor of the parent class takes one argument, an integer representing the layout.
在上述代码中,父类的构造函数接受一个参数,一个表示布局的整型参数。
For example, in the code above we used -d "for the command line option defining a name-value pair."
比方说,在上面的代码中我们用“- D”这一命令行选项来定义名-值对。
In order to restore the HMC using the backup made in the script above, you must first reinstall the HMC machine code, and then restore the data from either the DVD or remote server.
要使用上面的脚本所建立的备份来恢复HMC,您必须首先重新安装HMC机器代码,然后从DVD或远程服务器恢复相应的数据。
In the code above, we create a table object, t, with three columns and two rows.
在上面的代码中,创建了一个表格对象,t,它有三列、两行。
Note that the "transaction" module was not used in the code fragment above; we imported it because the examples below will be using it.
请注意,上面的代码片段没有使用“transaction”模块;我们导入它是因为下面的示例将使用到它。
In the fragment of the code above, each viewer was assigned a styleName.
在以上代码片段中,为每个查看器分配了一个stylename属性。
In the code above, we created a new chapter object, chapter1, with the title "This is chapter 1." Setting number depth to 0 will not display the chapter number on page.
在上面的代码中,创建了一个新的章节对象,chapter1,其标题为“Thisischapter1”,将编号级别设为0就不会在页面上显示章节编号。
Note that the object template in the code above is created at the same time as the context.
注意:代码中的对象模板在context创建的时候就被创建。
If you'd like to change the colors, modify the code in the above listing to suit your preferences.
如果想改变颜色,请把上述清单中的代码改为适合于您的偏好的代码。
All in all, the procedure outlined above in a short snippet of code mirrors what is usually performed in a standard X application.
总而言之,上面对这段代码片段的简短分析就说明了在标准的X应用程序中通常要执行哪些操作。
The above code is similar in meaning to the EJB environment parameters, discussed earlier.
上面的代码在意义上类似于前面讨论的EJB环境参数。
Listing 5 below prints the available IPs on the system from the list in the code above.
下面的清单5显示了上面代码的列表中获得的系统中可用的IP。
Rather than retype (or copy and paste) everything you see in the code listings above, you can simply use the PHP file that is included in the Download section.
无需重新键入(或是复制粘贴)在上述代码清单中所列的所有代码,您可以简单地使用本文下载部分所附的这个PHP文件。
In fact, the code above won't quite work: it gets a bus error when the SPE tries to retrieve its arguments.
实际上,上面的代码并没有多少工作:当SPE试图检索自己的参数时,会得到一个总线错误。
In this solution, you may not need to use the exact code shown in Listing 2 above.
在这个方法中,您可能不需要使用如清单2所示的完全相同的代码。
In other words, I need to make sure that the binding I choose in the interface WSDL contains the same port I have already chosen (in the code snippet above).
换言之,我需要确保我在接口WSDL中选择的绑定包含我已经选择的同一个端口(在上面的代码片断中)。
In other words, I need to make sure that the binding I choose in the interface WSDL contains the same port I have already chosen (in the code snippet above).
换言之,我需要确保我在接口WSDL中选择的绑定包含我已经选择的同一个端口(在上面的代码片断中)。
应用推荐