MaterializationInterceptionData.GetPropertyValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetPropertyValue(IPropertyBase) |
取得該物業的財產價值。 |
| GetPropertyValue(String) |
取得該房產的價值。 |
| GetPropertyValue<T>(IPropertyBase) |
取得該物業的財產價值。 |
| GetPropertyValue<T>(String) |
取得該房產的價值。 |
GetPropertyValue(IPropertyBase)
取得該物業的財產價值。
public object? GetPropertyValue(Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property);
member this.GetPropertyValue : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> obj
Public Function GetPropertyValue (property As IPropertyBase) As Object
參數
- property
- IPropertyBase
屬性。
傳回
屬性值。
備註
此方法的非泛泛性超載總會導致原始或值型屬性值被框入堆積分配物件中。
適用於
GetPropertyValue(String)
取得該房產的價值。
public object? GetPropertyValue(string propertyName);
member this.GetPropertyValue : string -> obj
Public Function GetPropertyValue (propertyName As String) As Object
參數
- propertyName
- String
屬性名稱。
傳回
屬性值。
備註
此方法的非泛泛性超載總會導致原始或值型屬性值被框入堆積分配物件中。
適用於
GetPropertyValue<T>(IPropertyBase)
取得該物業的財產價值。
public T GetPropertyValue<T>(Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property);
member this.GetPropertyValue : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> 'T
Public Function GetPropertyValue(Of T) (property As IPropertyBase) As T
類型參數
- T
參數
- property
- IPropertyBase
屬性。
傳回
T
屬性值。
備註
此方法的通用超載不會使原始或值型屬性值被框入堆積分配物件中。
適用於
GetPropertyValue<T>(String)
取得該房產的價值。
public T GetPropertyValue<T>(string propertyName);
member this.GetPropertyValue : string -> 'T
Public Function GetPropertyValue(Of T) (propertyName As String) As T
類型參數
- T
參數
- propertyName
- String
屬性名稱。
傳回
T
屬性值。
備註
此方法的通用超載不會使原始或值型屬性值被框入堆積分配物件中。