ExtensionManager.IsExtension<TInterfaceType> 方法 (Type)
檢查是否出現有效的擴充,這個擴充符合提供的型別,而且在目前的執行個體中沒有組態。
命名空間: Microsoft.Data.Schema.Extensibility
組件: Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)
語法
'宣告
Public Function IsExtension(Of TInterfaceType As {Class, IExtension}) ( _
type As Type _
) As Boolean
public bool IsExtension<TInterfaceType>(
Type type
)
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
bool IsExtension(
Type^ type
)
member IsExtension :
type:Type -> bool when 'TInterfaceType : not struct and IExtension
JScript 不支援泛型型別或方法。
型別參數
- TInterfaceType
衍生自 IExtension 介面的介面。
參數
- type
型別:System.Type
實作 TInterfaceType 介面的 Type。
傳回值
型別:System.Boolean
如果出現之已傳遞型別的有效擴充沒有註冊的組態則為 true,否則為 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。