JSObject.IExpando.AddProperty(String) 方法

定義

將指定的屬性加入至物件中。 這個方法並未在 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

要加入的屬性名稱。

傳回

所有情況下都是 null。

實作

適用於

另請參閱