共用方式為


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 介面的介面。

參數

傳回值

型別:System.Boolean
如果出現之已傳遞型別的有效擴充沒有註冊的組態則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

ExtensionManager 類別

IsExtension 多載

Microsoft.Data.Schema.Extensibility 命名空間

IExtension