JSObject.IExpando.AddProperty(String) 方法

定义

将指定的属性添加到该对象中。Adds the specified property to the object. 此方法未在 JScript 中实现。This method is not implemented in JScript.

此 API 支持产品基础结构,不能在代码中直接使用。

 virtual System::Reflection::PropertyInfo ^ System.Runtime.InteropServices.Expando.IExpando.AddProperty(System::String ^ name) = System::Runtime::InteropServices::Expando::IExpando::AddProperty;
System.Reflection.PropertyInfo IExpando.AddProperty (string name);
abstract member System.Runtime.InteropServices.Expando.IExpando.AddProperty : string -> System.Reflection.PropertyInfo
override this.System.Runtime.InteropServices.Expando.IExpando.AddProperty : string -> System.Reflection.PropertyInfo
Function AddProperty (name As String) As PropertyInfo Implements IExpando.AddProperty

参数

name
String

要添加的属性的名称。The name of the property to add.

返回

PropertyInfo

在所有情况下均为 null。null in all cases.

实现

适用于

另请参阅