共用方式為


ToolboxService.IToolboxService.IsSupported 方法

定義

取得值,指出表示已序列化工具箱項目的指定物件是否可由指定的設計工具主應用程式使用。

多載

IToolboxService.IsSupported(Object, ICollection)

取得值,指出表示序列化之工具箱項目的指定物件是否符合指定的屬性 (Attribute)。

IToolboxService.IsSupported(Object, IDesignerHost)

取得值,指出表示序列化之工具箱項目的指定物件是否可由指定的設計工具主應用程式使用。

IToolboxService.IsSupported(Object, ICollection)

取得值,指出表示序列化之工具箱項目的指定物件是否符合指定的屬性 (Attribute)。

 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

適用於