語言

ObjectPath.GetProperties(Object) 方法

定義

取得物件中的所有屬性。

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

要列舉屬性名稱的物件。

傳回

如果物件不是值型別,則列舉該物件上的屬性名稱。

適用於