ToolboxService.IToolboxService.IsSupported Method

Definition

Gets a value indicating whether the specified object which represents a serialized toolbox item can be used by the specified designer host.

Overloads

IToolboxService.IsSupported(Object, ICollection)

Gets a value indicating whether the specified object, which represents a serialized toolbox item, matches the specified attributes.

IToolboxService.IsSupported(Object, IDesignerHost)

Gets a value indicating whether the specified object, which represents a serialized toolbox item, can be used by the specified designer host.

IToolboxService.IsSupported(Object, ICollection)

Gets a value indicating whether the specified object, which represents a serialized toolbox item, matches the specified attributes.

C#
bool IToolboxService.IsSupported(object serializedObject, System.Collections.ICollection filterAttributes);

Parameters

serializedObject
Object

The object that contains the ToolboxItem to retrieve.

filterAttributes
ICollection

An ICollection that contains the attributes to test the serialized object for.

Returns

true if the object matches the specified attributes; otherwise, false.

Implements

Exceptions

serializedObject or filterAttributes is null.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

IToolboxService.IsSupported(Object, IDesignerHost)

Gets a value indicating whether the specified object, which represents a serialized toolbox item, can be used by the specified designer host.

C#
bool IToolboxService.IsSupported(object serializedObject, System.ComponentModel.Design.IDesignerHost host);

Parameters

serializedObject
Object

The object that contains the ToolboxItem to retrieve.

host
IDesignerHost

The IDesignerHost to test for support for the ToolboxItem.

Returns

true if the specified object is compatible with the specified designer host; otherwise, false.

Implements

Exceptions

serializedObject or host is null.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1