ObjectItemCollection.GetClrType 方法 (StructuralType)

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

返回与 objectSpaceType 参数提供的 StructuralType 相对应的 CLR 类型。

命名空间:  System.Data.Entity.Core.Metadata.Edm
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
<SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")> _
Public Function GetClrType ( _
    objectSpaceType As StructuralType _
) As Type
用法
Dim instance As ObjectItemCollection 
Dim objectSpaceType As StructuralType 
Dim returnValue As Type 

returnValue = instance.GetClrType(objectSpaceType)
[SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public Type GetClrType(
    StructuralType objectSpaceType
)
[SuppressMessageAttribute(L"Microsoft.Performance", L"CA1822:MarkMembersAsStatic")]
public:
Type^ GetClrType(
    StructuralType^ objectSpaceType
)
[<SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")>]
member GetClrType : 
        objectSpaceType:StructuralType -> Type
public function GetClrType(
    objectSpaceType : StructuralType
) : Type

参数

返回值

类型:System.Type
OSpace 参数的 CLR 类型。

请参阅

参考

ObjectItemCollection 类

GetClrType 重载

System.Data.Entity.Core.Metadata.Edm 命名空间