共用方式為


RuntimeEntityType.IReadOnlyEntityType.FindDeclaredProperty(String) 方法

定義

尋找在具有指定名稱之型別上宣告的屬性。 不會傳回基底類型上定義的屬性。

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? IReadOnlyEntityType.FindDeclaredProperty (string name);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty IReadOnlyEntityType.FindDeclaredProperty (string name);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindDeclaredProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindDeclaredProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
Function FindDeclaredProperty (name As String) As IReadOnlyProperty Implements IReadOnlyEntityType.FindDeclaredProperty

參數

name
String

屬性名稱。

傳回

如果找不到屬性,則為 null

實作

屬性

適用於