ObjectQuery.GetResultType 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 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 值,其中包含查詢之結果類型的相關資訊。