語言

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

要加上房產名稱。

傳回

在所有情況下都是零。

實作

適用於

另請參閱