它有属性代码,第二和第一的名称。
该工具包使用那些模型、元素和属性来生成代码转换。
The toolkit then USES those models, elements, and properties to generate code transformations.
清单2显示了从一个表中获取列并读取它们的属性的示例代码。
Listing 2 displays sample code to get columns from a table and read their properties.
因此,不管您在目标CMIS存储库中如何设置属性定义,这个代码将尝试使其有效。
So however you set up the property definitions in your target CMIS repository, this code will try to make it work.
通过以初始值创建属性来利用代码的信息,逆向工程保持了联系的初始化。
Reverse engineering preserves initialization of associations by creating attributes with initial values to leverage that information from the code.
编写能够被特定的元素和属性调用的可重用代码模块。
Write reusable code modules that can be invoked for specific elements and attributes.
由于属性发布是在代码级别完成的,因此即使不显示也可以访问字段。
Because property publication is done at a code level, the fields are accessible even though they are not displayed.
为了安全地解析XML,我们一定要对那些可能查找不到标签或属性的代码进行正确的错误处理,这需要很大的工作量。
To parse XML safely, ensuring that you protect code that looks for tags or attributes that it might not find and that it fails gracefully, is a lot of work.
负责显示这个天窗并保持其属性的代码出现在这个文件中。
The code responsible for displaying the top window and keeping its attributes is present in this file.
有些是干净代码的属性取决于特定的编程语言。
Some of the properties of clean code depend upon the specific programming language.
前面输入的所有属性都可以定制,但是也有一些用于定制代码生成的属性。
All of the attributes that were entered earlier may be customized, but there are also properties to customize the code generation.
为了提高性能,您可能希望抽取每个模型属性的代码放到它自己的方法中(或者带有“开关”的单个方法)。
To improve performance, you may wish to factor out the code for each model attribute into its own method (or a single method with a "switch").
在应用程序代码中对属性进行设置和获取。
Setting and getting attributes happens in the application code.
如果相同的类属性在代码内多次定义,它会显示所有的定义以及哪些定义被覆盖了、哪些定义正在使用。
If the same class attribute was defined several times in the code, it will show you all the definitions and which ones were overridden and which are being used.
XSL文件的这些区域代表与属性元件相关的转换代码。
These areas of the XSL file represent transformation code that is related to attribute elements.
这些普通属性不会触发任何特殊代码,也不会因为遍历方法代码而浪费时间。
The plain attributes should neither trigger any special code nor suffer the time penalty of working through method code.
对于那些业务项目属性,代码确定这些属性充当哪些流程或组件的输入或输出,并制作这些相关流程的列表。
For each of those business item attributes, the code determines which processes or components the attributes serve as inputs to or outputs of and makes a list of these dependent processes.
设置文本样式属性的代码如清单2 所示。
The code for setting the text style attributes is shown in listing 2.
使用属性标记代码元素的能力揭示了您的意图,即让一些外部因素对后面的代码起作用。
The ability to mark code elements with attributes declares your intent that something external operates on the code that follows.
图5显示了页的外观(基本上与最初的属性页相同),属性页的代码见清单16。
Figure 5 shows how the page appears (basically the same as the original property page) and the code for the property page is in Listing 16.
方法的可执行代码以包含在方法定义中的代码属性的形式出现。
The executable code for methods is present in the form of code attributes contained within the method definitions.
您只需要指定事务属性(没有回滚代码或回滚指令!)
You only need to specify the transaction attributes (no rollback code or rollback directives!)
切换到使用任务,只要简单地把改成,然后把命令行参数套用为同名的属性,如代码段3 - 2所示。
Switching over to use the task is as easy as flipping from to and providing the same command-line parameters as attributes to the task tag, as shown in Listing 3-2.
在资源属性文件中,可以使用代码。
需要特别注意的是该属性在代码中设置的位置——它是在调用send之前设置的。
Pay close attention to where in the code this property is set — it's before send is called.
与其重复定义和管理这些属性的代码,不如创建一个通用的帐户(account)类,该类具有现金收支平衡并且可以处理借贷事务。
Rather than duplicate the code that defines and manages these properties, you can create a common Account parent class that has a cash balance, and can handle credit and debit transactions.
上面的代码将此属性的内容(即实际消息有效负载)复制到“payload”变量中。
The code above copies the contents of this property (that is, the actual message payload) into the "payload" variable.
登录屏幕示例的复选框演示了如何为特定于组件的属性编写代码。
The login-screen example's checkbox demonstrates how to code component-specific properties.
清单4显示了建立AuthRequest对象和使用SReg请求属性的代码。
Listing 4 shows the code to build the AuthRequest object and request the attributes using SReg.
在这之前,必须设置enablevbacallers属性,使得VSTO代码注册COMinteropt。
Before you can do this, the EnableVbaCallers property must be set, which will cause the VSTO code to be registered for COM interopt.
应用推荐