This article includes a general description of how to write extensions with code, followed by three specific and widely applicable examples.
本文包含关于如何使用代码编写扩展的一般性描述,之后还有三个具体的且广泛适用的示例。
These provide a handy way to view the full code base and refer to specific class information that may not be adequately noted in the model views I have included with this article.
这些提供了便捷的方式来观察完整的代码基础并且参考本文中我所包含的模型视图中没有充分说明的具体类信息。
We need a way to override our reasonable defaults with some specific code to handle these situations.
需要一些处理这些情况的特定代码来覆盖合理的缺省值。
For example, the following Gatekeeper code creates a multi-use token with specific usage limits (from the documentation).
例如,以下的Gatekeeper代码使用指定使用限制来创建一个多重使用标记(文档来源)。
For the most part, though, this type of solution still requires some custom code to work with an organization's specific problem, actually transforming this into a services type of solution.
但对于大多数情况,这类解决方案仍然需要一些自定义的代码,以处理组织中特定的问题,实际上将其转换成了服务类型的解决方案。
This allows user code to be ported between frameworks, but not the generated classes — those are specific to a particular data binding framework and will only operate with that framework.
这使用户代码可以在各框架之间进行移植,而不需移植生成的类—这些类特定于专门的数据绑定框架,它们只能由该框架运行。
While you could develop a class that implements all three interfaces, you end up with quite a lot of technology-specific code for accessing and processing the actual messages.
当您能开发一个类来实现所有这三个接口时,会以访问、处理实际消息的代码而结束,而这些代码又与许多与技术细节是紧密相关的。
In other words (using the specific example of a data binding API), don't assume that you want to use data binding every time your code works with XML.
换句话说(使用数据绑定api这个具体的例子),不要假设您的代码每次处理XML都要使用数据绑定。
With the column names stored as attributes, extra code is required to locate a collection of all of the elements from a specific column.
将列名存储为属性的话,需要额外的代码来从特定的列找到所有元素的集合。
Ideally the existing code can easily be combined with some platform specific glue that will produce a quick turnaround that leverages the original investment.
理想情况下,现有代码可以通过某种平台相关的接口结合起来,这种接口提供了一个快速方案,帮助利用原有的资源。
Now, with JAXP 1.3, you can parse, validate, and transform XML without ever writing a line of vendor-specific code.
现在,使用JAXP 1.3可以解析、验证并转换XML,而无需编写一行特定于开发商的代码。
I have found that being able to report these exceptions with a specific error code (instead of a generic exception or, even worse, no reported error) has saved me hours tracking bugs.
我发现,在跟踪错误时,用特定的错误码(而不是一般的异常或—甚至更糟—不报告错误)来报告这些异常节省了我数小时的时间。
Before we can do anything String-specific with that retrieved value, we have to cast it to a String, even when the retrieved element was added in the same code block!
在对检索到的值进行任何特定于String的操作之前,必须将它强制转换为String,即使是将检索到的元素添加到同一代码块中,也是如此!
In order to combine the EPC and the the master data, a solution-specific code component called handler needs to be written to interpret the EPC and look up the correct MDM entity with an external ID.
为了组合EPC和管理数据,需要编写一个称为处理器(handler)的解决方案特定的代码组件,这个组件解释EPC并用外部ID查找正确的MDM实体。
Azure Grid provides you with a base solution template to which you add application-specific code.
AzureGrid为你提供了一个基础的解决方案模板,在其中你可以添加特定于应用程序的代码。
select a specific communication protocol or API that can interoperate with non-SCA code. Because of this, bindings other than the default binding are often called interoperable bindings.
正因为如此,非缺省的绑定通常被称为可互操作的绑定。
Dear friends, with the popularity of two-dimensional code, after your home house also has a two-dimensional code! Scan two-dimensional code to check your specific address information.
各位朋友们,随着二维码的普及,以后你家的门牌上也有二维码啦!扫描二维码即可查你家的具体地址信息。
In this case, the object typically has a property that contains the specific error code associated with the error.
在那种情况下,对象通常有一个属性包含与错误关联的特定错误代码。
The full name is a code name, it needs to get legal protection, because it can be contacted with specific natural person, be.
姓名是一个代号,它之所以需要受到法律的保护,是因为它能够和特定的自然人联系起来。
Recipes for specific application challenges, mostly code snippets with a minimum of exposition.
一组解决实际应用中某些特定挑战的“菜谱”,大部分是代码片段随带少量的详细阐述。
For example, a connection manager written with native code may be able to achieve very high scalability on a specific platform.
例如,一个用本地代码编写的连接管理可以在一个特殊的平台上达到一个非常高的容量。
A scheme for designing the three-position switch with both analog and digital devices is presented with specific diagram and program code.
介绍了一种利用模拟可编程器件和数字可编程器件设计三工位开关控制器的方案,并给出了具体的电路图和程序代码。
Each tip shows how to perform a very specific task and provides step-by-step instructions with detailed code snippets and screen shots.
每个提示显示了如何执行特定任务,并提供详细的代码段和屏幕快照的分步指导。
This allows other code to make identity demands, so that only code with a specific piece of evidence will pass.
这允许其他代码生成标识请求,这样只有具有特定证据的代码才能通过。
This allows other code to make identity demands, so that only code with a specific piece of evidence will pass.
这允许其他代码生成标识请求,这样只有具有特定证据的代码才能通过。
应用推荐