IExpando.AddProperty(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將命名的屬性加入 Reflection 物件。
public:
System::Reflection::PropertyInfo ^ AddProperty(System::String ^ name);
public System.Reflection.PropertyInfo AddProperty(string name);
abstract member AddProperty : string -> System.Reflection.PropertyInfo
Public Function AddProperty (name As String) As PropertyInfo
參數
- name
- String
屬性的名稱。
傳回
一個 PropertyInfo 代表新增屬性的物件。
例外狀況
該 IExpando 物件不支援此方法。