尋找目前 ExtensionManager (型別為 IExtension 且做為 ExtensionHandle 參數值所識別之物件的組態) 中的擴充。
命名空間: Microsoft.Data.Schema.Extensibility
組件: Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)
語法
'宣告
Public Function GetExtension(Of TInterfaceType As {Class, IExtension}) ( _
extensionHandle As ExtensionHandle _
) As ExtensionHandle(Of TInterfaceType)
public ExtensionHandle<TInterfaceType> GetExtension<TInterfaceType>(
ExtensionHandle extensionHandle
)
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ExtensionHandle<TInterfaceType>^ GetExtension(
ExtensionHandle^ extensionHandle
)
member GetExtension :
extensionHandle:ExtensionHandle -> ExtensionHandle<'TInterfaceType> when 'TInterfaceType : not struct and IExtension
JScript 不支援泛型型別或方法。
型別參數
- TInterfaceType
繼承自 IExtension 的 Type。
參數
- extensionHandle
型別:Microsoft.Data.Schema.Extensibility.ExtensionHandle
要尋找且型別為 IExtension 之物件的 ExtensionHandle<TInterfaceType>。
傳回值
型別:Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
已載入之指定 TInterfaceType 的 ExtensionHandle<TInterfaceType>。
備註
還原序列化擴充控制代碼時,會使用這個方法。 必須先將已還原序列化的 ExtensionHandle<TInterfaceType> 物件傳遞給這個方法,才能開始使用。
如果找到不相符的 ExtensionHandle<TInterfaceType>,方法會傳回 nullNull 參照 (即 Visual Basic 中的 Nothing)。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。