Share via


IToolboxService.IsSupported 方法

定義

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

多載

IsSupported(Object, ICollection)

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

IsSupported(Object, IDesignerHost)

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

IsSupported(Object, ICollection)

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

public:
 bool IsSupported(System::Object ^ serializedObject, System::Collections::ICollection ^ filterAttributes);
public bool IsSupported (object serializedObject, System.Collections.ICollection filterAttributes);
abstract member IsSupported : obj * System.Collections.ICollection -> bool
Public Function IsSupported (serializedObject As Object, filterAttributes As ICollection) As Boolean

參數

serializedObject
Object

物件,包含要擷取的 ToolboxItem

filterAttributes
ICollection

ICollection,包含要測試已序列化物件的屬性。

傳回

如果物件符合指定的屬性,則為 true,否則為 false

適用於

IsSupported(Object, IDesignerHost)

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

public:
 bool IsSupported(System::Object ^ serializedObject, System::ComponentModel::Design::IDesignerHost ^ host);
public bool IsSupported (object serializedObject, System.ComponentModel.Design.IDesignerHost host);
abstract member IsSupported : obj * System.ComponentModel.Design.IDesignerHost -> bool
Public Function IsSupported (serializedObject As Object, host As IDesignerHost) As Boolean

參數

serializedObject
Object

物件,包含要擷取的 ToolboxItem

host
IDesignerHost

要測試是否支援 IDesignerHostToolboxItem

傳回

如果指定的物件與指定的設計工具主應用程式相容,則為 true,否則為 false

適用於