RegistrationServices.TypeRepresentsComType(Type) 方法

定義

指出某個型別是使用 ComImportAttribute 標記,或是衍生自使用 ComImportAttribute 標記的型別並與父代 (Parent) 共用相同的 GUID。

public:
 virtual bool TypeRepresentsComType(Type ^ type);
public virtual bool TypeRepresentsComType (Type type);
abstract member TypeRepresentsComType : Type -> bool
override this.TypeRepresentsComType : Type -> bool
Public Overridable Function TypeRepresentsComType (type As Type) As Boolean

參數

type
Type

要檢查是否為 COM 型別的型別。

傳回

如果某個型別是使用 ComImportAttribute 標記,或是衍生自使用 ComImportAttribute 標記的型別並與父代共用相同的 GUID,則為 true,否則為 false

實作

適用於