ToolboxService.IToolboxService.IsSupported 方法

定义

获取一个值,该值指示指定的设计器宿主是否可使用表示序列化工具箱项的指定对象。

重载

IToolboxService.IsSupported(Object, ICollection)

获取一个值,该值指示表示一个被序列化的工具箱项的指定对象是否与指定特性相匹配。

IToolboxService.IsSupported(Object, IDesignerHost)

获取一个值,该值指示指定的设计器宿主是否可使用表示一个被序列化的工具箱项的指定对象。

IToolboxService.IsSupported(Object, ICollection)

获取一个值,该值指示表示一个被序列化的工具箱项的指定对象是否与指定特性相匹配。

 virtual bool System.Drawing.Design.IToolboxService.IsSupported(System::Object ^ serializedObject, System::Collections::ICollection ^ filterAttributes) = System::Drawing::Design::IToolboxService::IsSupported;
bool IToolboxService.IsSupported (object serializedObject, System.Collections.ICollection filterAttributes);
abstract member System.Drawing.Design.IToolboxService.IsSupported : obj * System.Collections.ICollection -> bool
override this.System.Drawing.Design.IToolboxService.IsSupported : obj * System.Collections.ICollection -> bool
Function IsSupported (serializedObject As Object, filterAttributes As ICollection) As Boolean Implements IToolboxService.IsSupported

参数

serializedObject
Object

包含要检索的 ToolboxItem 的对象。

filterAttributes
ICollection

ICollection,它包含要为其测试序列化对象的特性。

返回

如果该对象与指定特性相匹配,则为 true;否则为 false

实现

例外

serializedObjectfilterAttributesnull

适用于

IToolboxService.IsSupported(Object, IDesignerHost)

获取一个值,该值指示指定的设计器宿主是否可使用表示一个被序列化的工具箱项的指定对象。

 virtual bool System.Drawing.Design.IToolboxService.IsSupported(System::Object ^ serializedObject, System::ComponentModel::Design::IDesignerHost ^ host) = System::Drawing::Design::IToolboxService::IsSupported;
bool IToolboxService.IsSupported (object serializedObject, System.ComponentModel.Design.IDesignerHost host);
abstract member System.Drawing.Design.IToolboxService.IsSupported : obj * System.ComponentModel.Design.IDesignerHost -> bool
override this.System.Drawing.Design.IToolboxService.IsSupported : obj * System.ComponentModel.Design.IDesignerHost -> bool
Function IsSupported (serializedObject As Object, host As IDesignerHost) As Boolean Implements IToolboxService.IsSupported

参数

serializedObject
Object

包含要检索的 ToolboxItem 的对象。

host
IDesignerHost

要测试其是否支持 IDesignerHostToolboxItem

返回

如果指定对象与指定的设计器宿主兼容,则为 true;否则为 false

实现

例外

serializedObjecthostnull

适用于