共用方式為


IMutableTypeBase.GetDeclaredProperties 方法

定義

取得在此類型上宣告的所有純量屬性。

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> GetDeclaredProperties ();
abstract member GetDeclaredProperties : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty>
Public Function GetDeclaredProperties () As IEnumerable(Of IMutableProperty)

傳回

宣告的純量屬性。

備註

這個方法不會傳回在基底類型上宣告的屬性。 在逐一查看所有型別時,避免多次處理相同的屬性時,它很有用。 使用 GetProperties() 也會傳回基底類型上宣告的屬性。

適用於