说明巢状型别宣告所禁止的编辑。
型别宣告可包含本程式码。
取得此类别的型别宣告。
传回目前已编译之工作流程的程式码型别宣告。
Returns the code type declaration for the workflow that is currently being compiled.
更容易进行重构和修改程序码,因为您不必变更整个程序码中的静态型别宣告。
Easier refactoring and code modifications, because you do not have to change static type declarations throughout the code.
若要修正此规则的违规情形,请使建构函式受到保护,或者勿将型别宣告为抽象。
To fix a violation of this rule, either make the constructor protected or do not declare the type as abstract.
自订属性的结构是透过型别上所宣告的资料成员自我描述的,而且值编码可透过任何工具(包括执行阶段反映服务)浏览。
The structure of the custom attribute is self-describing, using data members declared on the type, and the value encoding is browsable by any tool, including the runtime reflection services.
宣告阵列变数后,就不可再变更其阵序或其元素资料型别。
Once you declare an array variable, you cannot change its rank or its element data type.
针对从XAML读取器或写入器使用的组件中载入型别,宣告使用权限。
Declares permissions for loading types from assemblies that are used by a XAML reader or writer.
当需要一组新的引数型别或传回值型别时,必须宣告一个新的传回型别。
Whenever a new set of argument types or return value type is needed, a new delegate type must be declared.
一般来说,巢状型别不应该针对非其宣告型别以外的型别执行工作。
In general, a nested type should not perform tasks for types other than its declaring type.
NET控制项、物件执行个体以及型别执行个体应该宣告成物件。
NET controls, object instances, and type instances should be declared as objects.
物件运算式,可让您在需要时于运算式中隐含定义小型物件,而不用宣告新型别以及具现化物件。
Object expressions, which enable you to define small objects implicitly in expressions as needed, instead of declaring a new type and instantiating an object.
当方法宣告将基底型别指定为参数,则从此基底型别衍生的任何型别都可以当做对应引数传递给方法。
When a base type is specified as a parameter in a method declaration, any type that is derived from the base type can be passed as the corresponding argument to the method.
巢状型别应该紧密地与其宣告型别结合,且不能与一般用途的型别一样实用。
Nested types should be tightly coupled to their declaring type and must not be useful as a general purpose type.
输入系结集合同时包含与型别有关的输入系结,以及在执行个体上宣告的输入系结。
The collection of input bindings will include both input bindings that pertain to the type as well as input bindings that are declared on the instance.
类别图表中的型别图案是指部分类型的单一宣告位置。
The type shape in the class diagram refers to a single declaration location for the partial class.
任何的类别、结构或介面成员宣告中,如果在型别之前包含无效的修饰词,都将产生此错误。
Any class, struct, or interface member declaration that contains invalid modifiers before the type will generate this error.
查询运算式经常使用匿名型别,此型别只能使用物件初始化设定式初始化,如下列宣告所示。
Query expressions make frequent use of anonymous types, which can only be initialized by using an object initializer, as shown in the following declaration.
解释如何将宣告式安全性属性套用到动态组件中的型别和成员,以及套用到动态组件本身。
Explains how to apply declarative security attributes to types and members in dynamic assemblies, and to dynamic assemblies themselves.
说明如何宣告具型别和不具型别的变数和常数,以及如何初始化。
Explains how to declare typed and untyped variables and constants and how to initialize them.
型别会在命名空间中宣告以防止名称冲突,而且可当做组织物件阶层架构中相关型别的一种方法。
Types are declared in namespaces to prevent name collisions, and as a way to organize related types in an object hierarchy.
如果提供的型别与最初注册相依性属性时所宣告的型别不相符,则会掷回例外状况。
If the provided type does not match the type that is declared for the dependency property as it was originally registered, an exception is thrown.
造成这项错误的原因可能是:在成员指标的宣告中遗漏型别规范。
This error can be caused by a missing type specifier in the declaration of a pointer to a member.
这种初始化可能发生在具型别阵列变数被宣告时或是稍后和其他型别的变数一起宣告时。
The initialization can occur when the typed array variable is declared or later, as with variables of other types.
存取修饰词是用于指定成员或型别之宣告存取范围的关键字。
Access modifiers are keywords used to specify the declared accessibility of a member or a type.
如果两个执行个体只宣告非索引键属性,但名称、型别、顺序和值都相等,则这两个执行个体还是不相等。
Only properties you designate as key properties participate in tests of equality between anonymous type instances, or calculation of hash code values.
阵列也可以使用隐含型别进行宣告。
为函式明确地宣告传回型别,可增进程序码的可读性,因为函式传回的资料型别会变得清楚易懂。
Declaring a return type explicitly for a function improves code readability, since the type of data that the function will return is immediately clear.
下列范例是宣告两种型别的标头档。
The following sample is a header file that declares two types.
应用推荐