DbPropertyValues.GetValue<TValue> メソッド
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
プロパティの値を取得します。インデックス付きプロパティの取得に似ていますが、ジェネリック パラメーターの型が適用されます。 多数のキャストを使用する式を書かなくても済むので、入れ子ディクショナリで特に便利です。
名前空間: System.Data.Entity.Infrastructure
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
Public Function GetValue(Of TValue) ( _
propertyName As String _
) As TValue
'使用
Dim instance As DbPropertyValues
Dim propertyName As String
Dim returnValue As TValue
returnValue = instance.GetValue(propertyName)
public TValue GetValue<TValue>(
string propertyName
)
public:
generic<typename TValue>
TValue GetValue(
String^ propertyName
)
member GetValue :
propertyName:string -> 'TValue
JScript does not support generic types and methods.
型パラメーター
- TValue
プロパティの型。
パラメーター
- propertyName
型 : System.String
プロパティ名。
戻り値
型 : TValue
プロパティの値。