ObjectContext.GetKnownProxyTypes 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
傳回所有現有的 Proxy 類型。
命名空間: System.Data.Entity.Core.Objects
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public Shared Function GetKnownProxyTypes As IEnumerable(Of Type)
'用途
Dim returnValue As IEnumerable(Of Type)
returnValue = ObjectContext.GetKnownProxyTypes()
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public static IEnumerable<Type> GetKnownProxyTypes()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
public:
static IEnumerable<Type^>^ GetKnownProxyTypes()
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
static member GetKnownProxyTypes : unit -> IEnumerable<Type>
public static function GetKnownProxyTypes() : IEnumerable<Type>
傳回值
類型:System.Collections.Generic.IEnumerable<Type>
所有現有 Proxy 類型的 IEnumerable<T>。