RegistrationServices.TypeRepresentsComType(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示类型是否用 ComImportAttribute 进行了标记,或者派生带有 ComImportAttribute 标记的类型并且与父级具有相同的 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
。
实现
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈