NumberConstructor 类
定义
表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.
此 API 支持产品基础结构,不能在代码中直接使用。
public ref class NumberConstructor : Microsoft::JScript::ScriptFunction
public class NumberConstructor : Microsoft.JScript.ScriptFunction
type NumberConstructor = class
inherit ScriptFunction
Public Class NumberConstructor
Inherits ScriptFunction
- 继承
字段
| engine |
此 API 支持产品基础结构,不能在代码中直接使用。 存储对脚本引擎的引用。Stores a reference to the scripting engine. (继承自 ScriptObject) |
| field_table |
此 API 支持产品基础结构,不能在代码中直接使用。 存储在对象中动态添加和移除的字段的列表。Stores a list of fields that are dynamically added and removed from the object. (继承自 JSObject) |
| ilength |
此 API 支持产品基础结构,不能在代码中直接使用。 存储元素的数量,这些元素位于 CreateInstance(Object[]) 方法的 |
| MAX_VALUE |
此 API 支持产品基础结构,不能在代码中直接使用。 表示 Double 的最大可能值。Represents the largest possible value of a Double. 此字段为常数。This field is constant. |
| MIN_VALUE |
此 API 支持产品基础结构,不能在代码中直接使用。 表示大于零的最小正 Double 值。Represents the smallest positive Double value that is greater than zero. 此字段为常数。This field is constant. |
| NaN |
此 API 支持产品基础结构,不能在代码中直接使用。 表示不是数字 (NaN) 的值。Represents a value that is not a number (NaN). 此字段为常数。This field is constant. |
| NEGATIVE_INFINITY |
此 API 支持产品基础结构,不能在代码中直接使用。 表示负无穷。Represents negative infinity. 此字段为常数。This field is constant. |
| parent |
此 API 支持产品基础结构,不能在代码中直接使用。 存储对父对象的引用。Stores a reference to the parent object. (继承自 ScriptObject) |
| POSITIVE_INFINITY |
此 API 支持产品基础结构,不能在代码中直接使用。 表示正无穷。Represents positive infinity. 此字段为常数。This field is constant. |
属性
| Item[Double] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置由指定的 Double 索引值指定的脚本对象的成员。Gets or sets a member of the script object that is designated by the specified Double index value. (继承自 ScriptObject) |
| Item[Int32] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置由指定的 Int32 索引值指定的脚本对象的成员。Gets or sets a member of the script object that is designated by the specified Int32 index value. (继承自 ScriptObject) |
| Item[Object[]] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置由指定的名称、Double 索引值或 Int32 索引值指定的脚本对象的成员。Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value. (继承自 ScriptObject) |
| Item[String] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置由指定名称指定的脚本对象的成员。Gets or sets a member of the script object that is designated by the specified name. (继承自 ScriptObject) |
| length |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置元素的数量,这些元素位于 CreateInstance(Object[]) 方法的 |
| prototype |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置此构造函数的原型对象。Gets or sets the prototype object for this constructor function. (继承自 ScriptFunction) |
| UnderlyingSystemType |
此 API 支持产品基础结构,不能在代码中直接使用。 获取脚本对象的类型。Gets the type of the script object. (继承自 ScriptObject) |
方法
| AddField(String) |
此 API 支持产品基础结构,不能在代码中直接使用。 将指定的字段添加到该对象中。Adds the specified field to the object. (继承自 JSObject) |
| CreateInstance(Object[]) |
此 API 支持产品基础结构,不能在代码中直接使用。 创建基于原型的对象的实例,在指定的参数中传递。Creates an instance of the prototype-based object, passing in the specified arguments. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetField(String, BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取具有指定名称的字段。Gets a field that has the specified name. (继承自 ScriptObject) |
| GetFields(BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 FieldInfo 对象的数组,这些对象对应于当前脚本对象的所有字段。Gets an array of FieldInfo objects that correspond to all fields of the current script object. (继承自 ScriptObject) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetMember(String, BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 MemberInfo 对象的数组,这些对象对应于与指定名称匹配的所有成员。Gets an array of MemberInfo objects that correspond to all members that match the specified name. (继承自 JSObject) |
| GetMembers(BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 MemberInfo 对象的数组,这些对象对应于当前脚本对象的所有成员。Gets an array of MemberInfo objects that correspond to all members of the current script object. (继承自 JSObject) |
| GetMethod(String, BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取具有指定名称的方法。Gets a method that has the specified name. (继承自 ScriptObject) |
| GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) |
此 API 支持产品基础结构,不能在代码中直接使用。 通过使用指定的选择条件来获取具有指定名称的方法。Gets a method that has the specified name by using the specified selection criteria. (继承自 ScriptObject) |
| GetMethods(BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 MethodInfo 对象的数组,这些对象对应于当前脚本对象的所有方法。Gets an array of MethodInfo objects that correspond to all methods of the current script object. (继承自 ScriptObject) |
| GetParent() |
此 API 支持产品基础结构,不能在代码中直接使用。 获取对父对象的引用。Gets a reference to the parent object. (继承自 ScriptObject) |
| GetProperties(BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 PropertyInfo 对象的数组,这些对象对应于当前脚本对象的所有属性。Gets an array of PropertyInfo objects that correspond to all properties of the current script object. (继承自 ScriptObject) |
| GetProperty(String, BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取具有指定名称的属性。Gets a property that has the specified name. (继承自 ScriptObject) |
| GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) |
此 API 支持产品基础结构,不能在代码中直接使用。 通过使用指定的选择条件来获取具有指定名称的属性。Gets a property that has the specified name by using the specified selection criteria. (继承自 ScriptObject) |
| GetPrototypeForConstructedObject() |
此 API 支持产品基础结构,不能在代码中直接使用。 获取此构造函数的原型对象。Gets the prototype object for this constructor function. (继承自 ScriptFunction) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| Invoke(Object) |
此 API 支持产品基础结构,不能在代码中直接使用。 将指定对象转换为数字。Converts the specified object to a number. |
| Invoke(Object, Object[]) |
此 API 支持产品基础结构,不能在代码中直接使用。 调用基于原型的对象的方法,在指定的参数中传递。Invokes a method of the prototype-based object, passing in the specified arguments. (继承自 ScriptFunction) |
| InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) |
此 API 支持产品基础结构,不能在代码中直接使用。 调用指定的成员。Invokes the specified member. (继承自 ScriptFunction) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| SetMemberValue2(String, Object) |
此 API 支持产品基础结构,不能在代码中直接使用。 设置动态地添加到对象并存储在 field_table 中的字段的值。Sets the value of a field that was dynamically added to the object and stored in field_table. (继承自 JSObject) |
| ToString() |
此 API 支持产品基础结构,不能在代码中直接使用。 返回构造函数的字符串表示形式。Returns a string representation of the constructor function. (继承自 ScriptFunction) |
显式接口实现
| IEnumerable.GetEnumerator() |
此 API 支持产品基础结构,不能在代码中直接使用。 返回循环访问对象成员的枚举数。Returns an enumerator that iterates through the members of the object. (继承自 JSObject) |
| IExpando.AddMethod(String, Delegate) |
此 API 支持产品基础结构,不能在代码中直接使用。 将指定的方法添加到该对象中。Adds the specified method to the object. 未在 JScript 中实现 IExpando.AddMethod(String, Delegate)。IExpando.AddMethod(String, Delegate) is not implemented in JScript. (继承自 JSObject) |
| IExpando.AddProperty(String) |
此 API 支持产品基础结构,不能在代码中直接使用。 将指定的属性添加到该对象中。Adds the specified property to the object. 此方法未在 JScript 中实现。This method is not implemented in JScript. (继承自 JSObject) |
| IExpando.RemoveMember(MemberInfo) |
此 API 支持产品基础结构,不能在代码中直接使用。 从该对象中移除指定的成员。Removes the specified member from the object. (继承自 JSObject) |
扩展方法
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
启用查询的并行化。Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |