Language

DbPropertyValues.GetValue<TValue>(String) メソッド

定義

インデックス付きプロパティゲッターを使用するのと同じように、ジェネリック パラメーターの型に型指定されたプロパティの値を取得します。 これは、多数のキャストを含む式を書き込むのを避けるために、入れ子になったディクショナリで特に便利です。

public TValue GetValue<TValue>(string propertyName);
member this.GetValue : string -> 'Value
Public Function GetValue(Of TValue) (propertyName As String) As TValue

型パラメーター

TValue

プロパティの型。

パラメーター

propertyName
String

プロパティの名前。

戻り値

TValue

プロパティの値。

適用対象