MetadataProperty.Create メソッド
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
MetadataProperty オブジェクトを作成するためのファクトリ メソッド。
名前空間: System.Data.Entity.Core.Metadata.Edm
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
Public Shared Function Create ( _
name As String, _
typeUsage As TypeUsage, _
value As Object _
) As MetadataProperty
'使用
Dim name As String
Dim typeUsage As TypeUsage
Dim value As Object
Dim returnValue As MetadataProperty
returnValue = MetadataProperty.Create(name, typeUsage, _
value)
public static MetadataProperty Create(
string name,
TypeUsage typeUsage,
Object value
)
public:
static MetadataProperty^ Create(
String^ name,
TypeUsage^ typeUsage,
Object^ value
)
static member Create :
name:string *
typeUsage:TypeUsage *
value:Object -> MetadataProperty
public static function Create(
name : String,
typeUsage : TypeUsage,
value : Object
) : MetadataProperty
パラメーター
- name
型 : System.String
メタデータ プロパティの名前。
- typeUsage
型 : System.Data.Entity.Core.Metadata.Edm.TypeUsage
メタデータ プロパティの型の使用法。
- value
型 : System.Object
メタデータ プロパティの値。
戻り値
型 : System.Data.Entity.Core.Metadata.Edm.MetadataProperty
MetadataProperty オブジェクト。
例外
例外 | 状態 |
---|---|
NullReferenceException | typeUsage が null の場合にスローされます。 |
解説
新しく作成される MetadataProperty は読み取り専用になります。