然后它将把列表转换成返回的数组。
我们使用这些方法返回的数组结构构建我们的数据模型。
Array structures returned from these methods are used to build our data model.
结果,返回的数组的长度不再与原始数组的长度一致。
As a result, the length of the returned array is no longer the same as the length of the original array.
如预期那样,客户端使用Web服务时只看见一个返回的数组。
The client side sees only a returned array as expected when working with Web services.
提示:返回的数组将拥有数值键,从0开始以基数1递增。
Tip: The returned array will have numeric keys, starting at 0 and increase by 1.
最后,如果元素是一个列表,选中项的值就会存储到返回的数组中。
Finally, if the element is a list, the values of the selected items are stored into the returned array.
由于它返回一个配置对象数组,因此您总是要检查返回的数组的长度。
Since it returns an array of config objects, you should always check the length of the returned array.
如果该对象表示的类或接口未实现接口,方法返回的数组长度为0。
If this object represents a class or interface that implements no interfaces, the method returns an array of length 0.
sortBy是一个sort对象数组,用于确定如何对返回的数组排序。
sortBy is an array of sort objects that determines how the returned array is sorted.
但是我们可以在返回的数组中一个个地试一下测试对象,这并不是一个聪明的办法。
Although we can try the test objects one by one in the return array to find the correct one, that is not a smart way.
当然,字符串数组不是惟一可以接受或返回的数组类型,INTEGERARRAY_HOLDER、LONGARRAY_HOLDER、和lsxsd.lss 文件中定义的类似的类也可以为其他原生数据类型提供相同的功能。
Of course, string arrays are not the only kind of arrays you can accept or return. There are also INTEGERARRAY_HOLDER, LONGARRAY_HOLDER, and similar classes defined in the lsxsd.lss
一个聚合可以有多个参数,这就是为什么要以数组的形式返回参数。
An aggregation can have multiple parameters, which is why this is returned as an array.
完成时将返回匹配平面文件中的记录的最终数组。
Finish by returning the final array of matching records from the flat file.
那个函数则接收匹配到的数组作为参数,然后返回一个修改后的字符串作为替换。
This function receives the match array as a parameter and returns a modified string that is used as a replacement.
该方法将返回嵌套的单元格数据数组,其中每个单元格使用它的行坐标和列坐标进行索引。
This method returns a nested array of cell data, with each cell indexed by its row and column coordinates.
接着,将已返回的剧集数组格式化HTML。
函数(3)以PHP关联数组的形式返回结果行。
Function (3) gets the result row as a PHP associative array.
输入字段的值作为字符串数组返回。
The values of the input fields are returned as an array of strings.
返回一个不可修改的List或者在返回之前克隆该数组可能更好。
It would be better either to return an unmodifiable List or clone the array before returning.
LotusScript没有提供在函数中返回数组的功能。
LotusScript does not provide the ability to return arrays in functions.
目前,Directory和DirectoryInfo的方法是返回数组。
Currently the methods on Directory and DirectoryInfo return arrays.
因此,我们可以获取图像的标题、日期以及描述(注意split()返回一个基于零的数组。
So we can grab the image's title, date, and description. (Note that split() returns a zero-based array.
由于我们在这一示例中没有实现任何元数据服务,所以该方法返回一个长度为0的数组(返回null将表明有错误)。
Since we implement no metadata service in this example, the method returns an array with length 0 (returning null would have indicated an error).
现在,我将试着实现返回给定参数的因子数组的方法,如清单11 中所示
Now, I'll take a shot at implementing the method that returns an array of factors for a given parameter, shown in Listing 11
就用户的客户机而言,GetUserRolesArray方法将返回常规的字符串数组,而不是特定的STRINGARRAY_HOLDER对象。
As far as the user's client is concerned, the GetUserRolesArray method returns a normal string array rather than a special STRINGARRAY_HOLDER object.
返回数组的另一种选择是将数组作为复杂数据类型的组成部分返回,该技巧我们将在下一篇文章中进行讨论。
Another option for returning arrays is to return them as parts of a complex data type, which is a technique we discuss in the next article.
该方法以数组形式返回每个行的各个元素(单元格)。
This method returns the individual elements (cells) of each row as an array.
如果您返回零数组,该代码的客户端必须编写额外的代码来检查返回值是否为零(如清单13所示)。
If you return a null array, the clients of the code must write extra code to check whether the return value is null (as shown in Listing 13).
SQL假设查询内的每一个表达式都返回一个行和列的数组,而XML数据的异构本质与之相冲突。
The heterogeneous nature of XML data conflicts with the SQL assumption that every expression inside a query returns an array of rows and columns.
它获取浏览器中的数据并返回简单对象数组。
It takes in browser data and returns an array of simple objects.
应用推荐