ObjectItemCollection.GetClrType-Methode (EnumType)
[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 Methode gibt den zugrunde liegenden CLR-Typ für das angegebene OSpace-Typargument zurück. Wenn der DataSpace des Parameters nicht OSpace ist, wird eine ArgumentException ausgelöst.
Namespace: System.Data.Entity.Core.Metadata.Edm
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")> _
Public Function GetClrType ( _
objectSpaceType As EnumType _
) As Type
'Usage
Dim instance As ObjectItemCollection
Dim objectSpaceType As EnumType
Dim returnValue As Type
returnValue = instance.GetClrType(objectSpaceType)
[SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public Type GetClrType(
EnumType objectSpaceType
)
[SuppressMessageAttribute(L"Microsoft.Performance", L"CA1822:MarkMembersAsStatic")]
public:
Type^ GetClrType(
EnumType^ objectSpaceType
)
[<SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")>]
member GetClrType :
objectSpaceType:EnumType -> Type
public function GetClrType(
objectSpaceType : EnumType
) : Type
Parameter
- objectSpaceType
Typ: System.Data.Entity.Core.Metadata.Edm.EnumType
Der OSpace-Typ, der gesucht werden soll.
Rückgabewert
Typ: System.Type
Der CLR-Typ des OSpace-Arguments.