方法.validate要做进一步的检查,以确保初始化实例所用的对象属于. _ order中指定的相应类。
The method.validate performs some further checks to make sure that the objects the instance was initialized with belong to the corresponding classes specified in._order.
清单1 中显示了onLoad方法的代码片段,它指定该方法初始化和加载 iWidget 操作所需的所有依赖项。
The code snippet shown in Listing 1 for the onLoad method specifies that this method initializes and loads all dependencies that are required for the operation of the iWidget.
一般的XAML规则是类型不按照初始化文本(或由XAML 2009年度的工厂方法)传递的成员必须能够以任意顺序指定。
The general XAML rule is that members of a type that are not passed as initialization text (or by a factory method in XAML 2009) must be able to be assigned in any order.
初始化匿名承载的动态方法,指定方法名称、返回类型和参数类型。
Initializes an anonymously hosted dynamic method, specifying the method name, return type, and parameter types.
初始化委派,这个委派会从指定的类别叫用指定的静态方法。
Initializes a delegate that invokes the specified static method from the specified class.
指定在初始化应用程序域时调用的回调方法,以及传递回调方法的字符串实参数组。
Specifies a callback method that is invoked when the application domain is initialized, and an array of string arguments to pass the callback method.
指定在初始化应用程序域时调用的回调方法,以及传递回调方法的字符串实参数组。
Specifies a callback method that is invoked when the application domain is initialized, and an array of string arguments to pass the callback method.
应用推荐