ObjectPath.GetProperties(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得物件中的所有屬性。
public static System.Collections.Generic.IEnumerable<string> GetProperties(object obj);
static member GetProperties : obj -> seq<string>
Public Shared Iterator Function GetProperties (obj As Object) As IEnumerable(Of String)
參數
- obj
- Object
要列舉屬性名稱的物件。
傳回
如果物件不是值型別,則列舉該物件上的屬性名稱。