Freigeben über


MetadataProperty.Create-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Die Factorymethode zum Erstellen des MetadataProperty-Objekts.

Namespace:  System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Shared Function Create ( _
    name As String, _
    typeUsage As TypeUsage, _
    value As Object _
) As MetadataProperty
'Usage
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

Parameter

Rückgabewert

Typ: System.Data.Entity.Core.Metadata.Edm.MetadataProperty
Das MetadataProperty-Objekt.

Ausnahmen

Ausnahme Bedingung
NullReferenceException

typeUsage wird ausgelöst, ist null.

Hinweise

Die neu erstellte MetadataProperty ist schreibgeschützt.

Siehe auch

Verweis

MetadataProperty Klasse

System.Data.Entity.Core.Metadata.Edm-Namespace