这个枚举定义了注释类型可应用的不同程序元素。
This enum defines the various program elements that an annotation type can target. Listing 9 show the ElementType enum in its entirety.
整数枚举定义系统缓存关联。例如,6表示完全关联的缓存。
An integer enumeration defining the system cache associativity. For example, 6 indicates a fully associative cache.
这两个参数有一个以枚举方式定义的允许值列表。
These two parameters have a list of allowed values defined in enumerations.
要定义的枚举和枚举文字。
清单7显示了来自用户颜色首选项的小部件xml定义的枚举代码片段。
Listing 7 shows a snippet of the enumeration code from the gadget XML definition of the user preference for color.
所有架构、元素、属性、类型和枚举都必须具有定义,并且它们必须以一组经核准的开始短语(比如Anameof或 Arelationship)中的一个打头。
All schemas, elements, attributes, types, and enumerations must have definitions, and they must start with one of an approved set of beginning phrases, such as A name of or A relationship.
使用所谓的facets,您可以派生新的类型,表示其他某个类型值的更小子集,比如通过枚举、范围或模式匹配来定义子集。
Using what are called facets, you can derive new types that represent a smaller subset of values of some other types, for example, to define a subset by enumeration, range, or pattern matching.
例如,定义在另一个概要文件中的元素(类、枚举和原型)现在可以被用于原型类型的属性中。
For example, elements (classes, enumerations, and stereotypes) defined in the other profile can now be used to type stereotype attributes.
这些文字可以指定类型,因此可以定义一个W3CXMLSchema枚举控制允许的值(请参阅参考资料)。
These literals may be datatyped, so you could define a W3C XML Schema enumeration to govern the permissible values (see Resources).
此枚举的典型用法是定义两个进程是否可同时从同一个文件中读取。
A typical use of this enumeration is to define whether two processes can simultaneously read from the same file.
如果既没有指定过滤器又没有指定比较器,枚举将以未定义的顺序遍历记录存储中的所有记录。
If neither the filter nor the comparator are specified, the enumeration will traverse all records in the record store in an undefined order.
常数可以是整数、字符、浮点数、字符串、Boolean、octet或枚举型,但不能是any类型或用户定义的类型。
Your constants can be integer, character, floating-point, string, Boolean, octet or enumerated but not of type any or a user-defined type. Here are some examples.
在主程序块、类、包或函数内部定义枚举。
Define the enumeration in the main program block, inside a class, inside a package, or in a function.
然后,清单6使用新定义的枚举作为一个成员变量的类型。
Then, Listing 6 USES the new enumeration as the type for the member variable.
可以为要使用但尚未定义的任何未定义类、构造函数、方法、属性、字段或枚举生成存根。
You can generate a stub for any undefined class, constructor, method, property, field, or enum that you want to use but have not yet defined.
所有接口,枚举和结构在工程内定义。
All of the interfaces, enums and structs are defined within the project.
枚举类型(也称为枚举)为定义一组可以赋给变量的命名整数常量提供了一种有效的方法。
An enumeration type (also named an enumeration or an enum) provides an efficient way to define a set of named integral constants that may be assigned to a variable.
同样,如果属性值在枚举类中定义,您可以只将该枚举指定到属性。
Similarly, if the property's values are defined in an enumeration class, you can simply assign the enumeration to the property.
位于枚举类型定义之后的main方法演示了这种用法。
The main method following the enumerated type definition demonstrates the usage.
枚举类型,定义在概要文件中,或者在一个导入的概要文件中。
Enumerations defined in the profile itself, or in an imported profile.
该函数使用subprocess_info结构以及定义是否等待的枚举变量(在“Usermode - helper API内部”一节中有描述)。
This function takes your subprocess_info structure and an enumeration defining whether to wait (described in the internals section).
可以使用模式来定义针对性别、婚姻状况和最喜欢颜色的枚举。
You'll use a schema that defines enumerations for gender, marital status, and favorite color. Here's a sample instance document.
用以前定义过的类型建立一个新的枚举(grade)之后,您就可以像使用其他成员变量一样使用它了。
By creating a new enumeration (grade) of the previously defined type, you can then use it like any other member variable.
枚举类型可以被用来指定原型属性集的类型当且仅当它们被定义在相同的概要文件中,或者在导入的概要文件中。
Enumerations can be used to specify the type of stereotype attributes only if they are defined in the same profile as the stereotype itself, or in an imported profile.
不过,由于任何逻辑模型都无法枚举出所有可能性,一旦任何开发人员使用不同的方法定义了一个系统,则此类模型将无法使用。
However, since any logic models cannot enumerate all possibilities, such a model will fail once any developer defined a system using a different approach.
“类型转发”是指将类、结构、接口、委托或枚举的定义重新分配到从中进行初始定义的程序集以外的一个程序集。
Type forwarding means reassigning the definition of a class, structure, interface, delegate, or enumeration to an assembly other than the one in which it was originally defined.
我们在XMLSchema规范中找不到任何方法可以用来定义不区分大小写的枚举。
We can't find any way in the XML Schema spec that we can define an enumeration that is case-insensitive.
这个例子生成了数据,定义了一个延迟LINQ查询,然后枚举查询结果。
This example creates the data, defines a deferred LINQ query, and then enumerates the query results.
对枚举来说,默认值是枚举类型定义中的第一个值。
For enums, the default value is the first value listed in the enum's type definition.
对枚举来说,默认值是枚举类型定义中的第一个值。
For enums, the default value is the first value listed in the enum's type definition.
应用推荐