ObjectQuery.GetResultType 方法

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

返回有关查询的结果类型的信息。

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

语法

声明
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public Function GetResultType As TypeUsage
用法
Dim instance As ObjectQuery 
Dim returnValue As TypeUsage 

returnValue = instance.GetResultType()
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public TypeUsage GetResultType()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
public:
TypeUsage^ GetResultType()
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
member GetResultType : unit -> TypeUsage
public function GetResultType() : TypeUsage

返回值

类型:System.Data.Entity.Core.Metadata.Edm.TypeUsage
一个 TypeUsage 值,它包含有关查询的结果类型的信息。

请参阅

参考

ObjectQuery 类

System.Data.Entity.Core.Objects 命名空间